Skip to content

Commit

Permalink
🐛 fix: 修正 CSS Object 模式下的类型定义问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 10, 2023
1 parent 39695fd commit 0521200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/genericUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CSSObject } from '@emotion/css';
export type StyleDefinition<StyleObj> = StyleObj extends string
? string
: {
[Key in keyof StyleObj]: CSSObject | string;
[Key in keyof StyleObj]: StyleObj[Key] extends string ? string : CSSObject;
};

/**
Expand Down

0 comments on commit 0521200

Please sign in to comment.