diff --git a/.changeset/tiny-needles-sing.md b/.changeset/tiny-needles-sing.md new file mode 100644 index 000000000..a22721b0b --- /dev/null +++ b/.changeset/tiny-needles-sing.md @@ -0,0 +1,6 @@ +--- +'@react-pdf/renderer': patch +'@react-pdf/types': patch +--- + +Add `dpi` and `bookmark` page prop types diff --git a/packages/renderer/index.d.ts b/packages/renderer/index.d.ts index f2578139b..a1ad7b3d6 100644 --- a/packages/renderer/index.d.ts +++ b/packages/renderer/index.d.ts @@ -8,6 +8,7 @@ import { SourceObject, HyphenationCallback, SVGPresentationAttributes, + Bookmark, } from '@react-pdf/types'; declare namespace ReactPDF { @@ -73,6 +74,8 @@ declare namespace ReactPDF { debug?: boolean; size?: PageSize; orientation?: Orientation; + dpi?: number; + bookmark?: Bookmark; children?: React.ReactNode; } diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index 8723f4e22..b6617137c 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -7,3 +7,4 @@ export * from './style'; export * from './image'; export * from './context'; export * from './primitive'; +export * from './bookmark';