Skip to content

Commit

Permalink
fix: renderer types (#3087)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomura authored Feb 18, 2025
1 parent 038cee8 commit 7cd66e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/fluffy-hotels-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@react-pdf/types": patch
"@react-pdf/font": patch
---

fix: font exported types
2 changes: 2 additions & 0 deletions packages/font/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class FontStore {
getRegisteredFontFamilies = (): string[] => Object.keys(this.fonts);
}

export type FontStoreType = typeof FontStore;

export {
FontStyle,
FontWeight,
Expand Down
1 change: 1 addition & 0 deletions packages/types/font.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export {
EmojiSource,
FontDescriptor,
HyphenationCallback,
FontStoreType as FontStore,
} from '@react-pdf/font';

0 comments on commit 7cd66e4

Please sign in to comment.