Skip to content

Commit 45a91ef

Browse files
committed
Add type declaration
1 parent 47144dd commit 45a91ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-pdf/src/Page/AnnotationLayer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import useResolver from '../shared/hooks/useResolver.js';
1313
import { cancelRunningTask } from '../shared/utils.js';
1414

1515
import type { Annotations } from '../shared/types.js';
16+
import type { AnnotationLayerParameters } from 'pdfjs-dist/types/src/display/annotation_layer.js';
1617

1718
export default function AnnotationLayer(): React.ReactElement {
1819
const documentContext = useDocumentContext();
@@ -169,7 +170,7 @@ export default function AnnotationLayer(): React.ReactElement {
169170
viewport: clonedViewport,
170171
};
171172

172-
const renderParameters = {
173+
const renderParameters: AnnotationLayerParameters = {
173174
annotations,
174175
annotationStorage: pdf.annotationStorage,
175176
div: layer,

0 commit comments

Comments
 (0)