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 7e54c1f commit d4cf944Copy full SHA for d4cf944
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