Skip to content

Commit 56cf948

Browse files
fix: SVGPresentationAttributes types (#2363)
* fix SVGPresentationAttributes typing * chore: add changeset --------- Co-authored-by: Diego Muracciole <[email protected]>
1 parent d8cc78b commit 56cf948

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/heavy-taxis-burn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@react-pdf/render": patch
3+
"@react-pdf/renderer": patch
4+
---
5+
6+
fix: SVGPresentationAttributes types

packages/renderer/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ declare namespace ReactPDF {
236236

237237
class Canvas extends React.Component<CanvasProps> {}
238238

239-
interface SVGProps extends NodeProps {
239+
interface SVGProps extends NodeProps, SVGPresentationAttributes {
240240
/**
241241
* Enables debug mode on page bounding box.
242242
* @see https://react-pdf.org/advanced#debugging

0 commit comments

Comments
 (0)