Skip to content

Commit

Permalink
🏷️ fix: 尝试优化类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 11, 2023
1 parent bf736a2 commit b6f2b62
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 @@ -5,7 +5,7 @@ type StyleObject = Record<string, CSSObject | string>;
/**
* 所有用户的可能的入参类型
*/
export type StyleInputType = string | StyleObject;
export type StyleInputType = string | CSSObject | StyleObject;

type StyleObjectOnly<T extends StyleInputType> = T extends string ? never : T;

Expand Down

0 comments on commit b6f2b62

Please sign in to comment.