Skip to content

Commit

Permalink
fix: allow <Link href={…} /> in TypeScript (#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jan 19, 2024
1 parent bc0d4f4 commit 66a40b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-tips-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/renderer': patch
---

Allow <Link href={…} /> in TypeScript
7 changes: 3 additions & 4 deletions packages/renderer/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ declare namespace ReactPDF {
* @see https://react-pdf.org/advanced#debugging
*/
debug?: boolean;
src: string;
href?: string;
src?: string;
}

/**
Expand Down Expand Up @@ -514,9 +515,7 @@ declare namespace ReactPDF {

const PDFRenderer: any;

const pdf: (
initialValue?: React.ReactElement<DocumentProps>,
) => {
const pdf: (initialValue?: React.ReactElement<DocumentProps>) => {
container: any;
isDirty: () => boolean;
toString: () => string;
Expand Down

0 comments on commit 66a40b2

Please sign in to comment.