Skip to content

Commit

Permalink
fix(types): fix wrong type for ThemeVariants (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamitzky committed Aug 28, 2021
1 parent 901755b commit b69619e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/system/src/types.ts
Expand Up @@ -71,7 +71,7 @@ export type ThemeStates<T extends ITheme> = T extends {
? T['states']
: unknown

export type ThemeVariants<T extends ITheme> = ThemeScreens<T> & ThemeStates<T>
export type ThemeVariants<T extends ITheme> = ThemeScreens<T> & Omit<ThemeStates<T>, '_'>

export type ThemeProp<TType, TTheme extends ITheme> = {
[P in keyof ThemeVariants<TTheme>]?: TType | ThemeProp<TType, TTheme>
Expand Down

0 comments on commit b69619e

Please sign in to comment.