Skip to content

Commit

Permalink
use omit instead of pick to support module augmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jul 11, 2022
1 parent 70a8e1b commit dbc7ed0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ export interface ThemeVars {
opacity: Opacity;
overlays: Overlays;
shadows: Shadows;
zIndex: ZIndex;
shape: Theme['shape'];
zIndex: ZIndex;
}

type Split<T, K extends keyof T = keyof T> = K extends string | number
Expand Down Expand Up @@ -319,7 +319,7 @@ export {};
export interface ThemeCssVarOverrides {}

export type ThemeCssVar = OverridableStringUnion<
| NormalizeVars<Pick<ThemeVars, 'palette' | 'opacity' | 'zIndex'>>
| NormalizeVars<Omit<ThemeVars, 'overlays' | 'shadows' | 'shape'>>
| 'shape-borderRadius'
| 'shadows-0'
| 'shadows-1'
Expand Down

0 comments on commit dbc7ed0

Please sign in to comment.