We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b01e0 commit 0194423Copy full SHA for 0194423
.changeset/neat-goats-ring.md
@@ -0,0 +1,5 @@
1
+---
2
+"@react-pdf/types": patch
3
4
+
5
+Fixed HyphenationCallback type (confusing argument name, removed extra argument)
packages/types/font.d.ts
@@ -33,10 +33,7 @@ interface FontInstance {
33
sources: FontSource[];
34
}
35
36
-export type HyphenationCallback = (
37
- words: string,
38
- glyphString: { [key: string]: any },
39
-) => string[];
+export type HyphenationCallback = (word: string) => string[];
40
41
interface RegisteredFont {
42
src: string;
0 commit comments