Skip to content

Commit

Permalink
fix: allow <G style={…} /> in TypeScript (#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj authored Jan 19, 2024
1 parent 66a40b2 commit 64f7bba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-jokes-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/renderer': patch
---

Allow <G style={…} /> in TypeScript
4 changes: 3 additions & 1 deletion packages/renderer/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ declare namespace ReactPDF {
*/
class Tspan extends React.Component<React.PropsWithChildren<TspanProps>> {}

interface GProps extends SVGPresentationAttributes {}
interface GProps extends SVGPresentationAttributes {
style?: Style;
}

/**
* The <G /> SVG element is a container used to group other SVG elements.
Expand Down

0 comments on commit 64f7bba

Please sign in to comment.