Skip to content

Commit 7e54c1f

Browse files
committed
Fix type checking issue
1 parent 760d6a6 commit 7e54c1f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/thirty-cars-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/react": patch
3+
---
4+
5+
Fix type checking issue

packages/react/src/types/props/text.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ export interface DevupUiTextProps {
3636

3737
content?: ResponsiveValue<Property.Content>
3838

39-
typography?: keyof DevupThemeTypography
39+
typography?: TypographyKey<DevupThemeTypography>
4040
}
41+
42+
// for skip type checking without .df
43+
type TypographyKey<T> = keyof T extends string ? keyof T : string

0 commit comments

Comments
 (0)