From 3b054b711f5dc0b1c4fd29feaf85b430baad2663 Mon Sep 17 00:00:00 2001 From: Adam Duncan Date: Mon, 11 Jul 2022 01:08:50 +0100 Subject: [PATCH] fix: bad type on onClick (#1924) --- .changeset/shiny-kiwis-lay.md | 5 +++++ packages/renderer/index.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shiny-kiwis-lay.md diff --git a/.changeset/shiny-kiwis-lay.md b/.changeset/shiny-kiwis-lay.md new file mode 100644 index 000000000..d25fd6b4b --- /dev/null +++ b/.changeset/shiny-kiwis-lay.md @@ -0,0 +1,5 @@ +--- +'@react-pdf/renderer': patch +--- + +fix: bad type on onClick diff --git a/packages/renderer/index.d.ts b/packages/renderer/index.d.ts index b2db56340..f2578139b 100644 --- a/packages/renderer/index.d.ts +++ b/packages/renderer/index.d.ts @@ -448,7 +448,7 @@ declare namespace ReactPDF { children?: | React.ReactNode | ((params: BlobProviderParams) => React.ReactNode); - onClick?: function; + onClick?: Function; } /**