File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @react-pdf/renderer " : patch
3+ ---
4+
5+ fix: PDFDownloadLinkProps Type Error
Original file line number Diff line number Diff line change @@ -594,11 +594,14 @@ declare namespace ReactPDF {
594594 export class PDFViewer extends React . Component < PDFViewerProps > { }
595595
596596 interface PDFDownloadLinkProps
597- extends Omit < React . AnchorHTMLAttributes < HTMLAnchorElement > , 'href' > {
597+ extends Omit <
598+ React . AnchorHTMLAttributes < HTMLAnchorElement > ,
599+ 'href' | 'children'
600+ > {
598601 /** PDF filename. Alias for anchor tag `download` attribute. */
599602 fileName ?: string ;
600603 document : React . ReactElement < DocumentProps > ;
601- children ?: React . ReactNode | React . ReactElement < BlobProviderParams > ;
604+ children ?: React . ReactNode | React . FC < BlobProviderParams > ;
602605 onClick ?: React . AnchorHTMLAttributes < HTMLAnchorElement > [ 'onClick' ] &
603606 ( (
604607 event : React . MouseEvent < HTMLAnchorElement , MouseEvent > ,
You can’t perform that action at this time.
0 commit comments