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 760d6a6 commit 7e54c1fCopy full SHA for 7e54c1f
.changeset/thirty-cars-fail.md
@@ -0,0 +1,5 @@
1
+---
2
+"@devup-ui/react": patch
3
4
+
5
+Fix type checking issue
packages/react/src/types/props/text.ts
@@ -36,5 +36,8 @@ export interface DevupUiTextProps {
36
37
content?: ResponsiveValue<Property.Content>
38
39
- typography?: keyof DevupThemeTypography
+ typography?: TypographyKey<DevupThemeTypography>
40
}
41
42
+// for skip type checking without .df
43
+type TypographyKey<T> = keyof T extends string ? keyof T : string
0 commit comments