From 7e54c1fc7b4dc3b40230ac0f5812c54470ee4709 Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Sat, 1 Feb 2025 22:50:05 +0900 Subject: [PATCH] Fix type checking issue --- .changeset/thirty-cars-fail.md | 5 +++++ packages/react/src/types/props/text.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/thirty-cars-fail.md 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