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.
2 parents 2747b5e + 064476f commit 05000ddCopy full SHA for 05000dd
.changeset/ten-snails-fail.md
@@ -0,0 +1,5 @@
1
+---
2
+"@devup-ui/react": patch
3
4
+
5
+Fix TypographyKey type definition for better type checking
packages/react/src/types/props/text.ts
@@ -40,4 +40,4 @@ export interface DevupUiTextProps {
40
}
41
42
// for skip type checking without .df
43
-type TypographyKey<T> = keyof T extends string ? keyof T : string
+type TypographyKey<T> = keyof T extends undefined ? string : keyof T
0 commit comments