File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -496,11 +496,14 @@ declare namespace ReactPDF {
496
496
export class PDFViewer extends React . Component < PDFViewerProps > { }
497
497
498
498
interface PDFDownloadLinkProps
499
- extends Omit < React . AnchorHTMLAttributes < HTMLAnchorElement > , 'href' > {
499
+ extends Omit <
500
+ React . AnchorHTMLAttributes < HTMLAnchorElement > ,
501
+ 'href' | 'children'
502
+ > {
500
503
/** PDF filename. Alias for anchor tag `download` attribute. */
501
504
fileName ?: string ;
502
505
document : React . ReactElement < DocumentProps > ;
503
- children ?: React . ReactNode | React . ReactElement < BlobProviderParams > ;
506
+ children ?: React . ReactNode | React . FC < BlobProviderParams > ;
504
507
onClick ?: React . AnchorHTMLAttributes < HTMLAnchorElement > [ 'onClick' ] &
505
508
( (
506
509
event : React . MouseEvent < HTMLAnchorElement , MouseEvent > ,
You can’t perform that action at this time.
0 commit comments