Skip to content

Commit

Permalink
fix: add clipPath to typing for SVGPresentationAttributes (#2453)
Browse files Browse the repository at this point in the history
* fix: add clipPath to typing for SVGPresentationAttributes

Using the clipPath attribute was causing a type error in Typescript because it was missing from the type def.

* fix: add clipPath type

---------

Co-authored-by: Diego Muracciole <[email protected]>
  • Loading branch information
chuckspencer-aiq and diegomura authored Jan 14, 2024
1 parent 3f31046 commit e5c8fde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-lizards-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-pdf/types": patch
---

fix: add clipPath to typing for SVGPresentationAttributes
1 change: 1 addition & 0 deletions packages/types/svg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface SVGPresentationAttributes {
strokeLineCap?: 'butt' | 'round' | 'square';
strokeLinejoin?: 'butt' | 'round' | 'square';
visibility?: 'visible' | 'hidden' | 'collapse';
clipPath?: string;
dominantBaseline?:
| 'auto'
| 'middle'
Expand Down

0 comments on commit e5c8fde

Please sign in to comment.