Skip to content

Commit

Permalink
Add missing dpi and bookmark page prop types (#2106)
Browse files Browse the repository at this point in the history
* fix: add missing page prop types

* add change set

Co-authored-by: Dmitry Ivakhnenko <jeetiss@yandex.ru>
  • Loading branch information
RDO34 and jeetiss committed Dec 27, 2022
1 parent 8536f10 commit 24bb5de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/tiny-needles-sing.md
@@ -0,0 +1,6 @@
---
'@react-pdf/renderer': patch
'@react-pdf/types': patch
---

Add `dpi` and `bookmark` page prop types
3 changes: 3 additions & 0 deletions packages/renderer/index.d.ts
Expand Up @@ -8,6 +8,7 @@ import {
SourceObject,
HyphenationCallback,
SVGPresentationAttributes,
Bookmark,
} from '@react-pdf/types';

declare namespace ReactPDF {
Expand Down Expand Up @@ -73,6 +74,8 @@ declare namespace ReactPDF {
debug?: boolean;
size?: PageSize;
orientation?: Orientation;
dpi?: number;
bookmark?: Bookmark;
children?: React.ReactNode;
}

Expand Down
1 change: 1 addition & 0 deletions packages/types/index.d.ts
Expand Up @@ -7,3 +7,4 @@ export * from './style';
export * from './image';
export * from './context';
export * from './primitive';
export * from './bookmark';

0 comments on commit 24bb5de

Please sign in to comment.