From 24bb5de969a854cc0226438985b34ef8ae2d7581 Mon Sep 17 00:00:00 2001 From: Ross Donohoe <39990531+RDO34@users.noreply.github.com> Date: Tue, 27 Dec 2022 10:20:02 +0000 Subject: [PATCH] Add missing `dpi` and `bookmark` page prop types (#2106) * fix: add missing page prop types * add change set Co-authored-by: Dmitry Ivakhnenko --- .changeset/tiny-needles-sing.md | 6 ++++++ packages/renderer/index.d.ts | 3 +++ packages/types/index.d.ts | 1 + 3 files changed, 10 insertions(+) create mode 100644 .changeset/tiny-needles-sing.md 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';