diff --git a/.changeset/thirty-cars-fail.md b/.changeset/thirty-cars-fail.md new file mode 100644 index 00000000..28ac0eb8 --- /dev/null +++ b/.changeset/thirty-cars-fail.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/react": patch +--- + +Fix type checking issue diff --git a/packages/react/src/types/props/text.ts b/packages/react/src/types/props/text.ts index 6f6cddaa..0a012c72 100644 --- a/packages/react/src/types/props/text.ts +++ b/packages/react/src/types/props/text.ts @@ -36,5 +36,8 @@ export interface DevupUiTextProps { content?: ResponsiveValue - typography?: keyof DevupThemeTypography + typography?: TypographyKey } + +// for skip type checking without .df +type TypographyKey = keyof T extends string ? keyof T : string