Skip to content

Commit

Permalink
fix: VariantProps symbol type error (stitchesjs#757)
Browse files Browse the repository at this point in the history
* fix: VariantProps symbol type error

* fix: add string to key type
  • Loading branch information
wobsoriano authored Sep 8, 2021
1 parent bfc1851 commit 4b9610f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type PropertyValue<K extends keyof CSSUtil.CSSProperties> = { readonly [C
export type ScaleValue<K> = { readonly [CSSUtil.$$ScaleValue]: K }

/** Returns a type that suggests variants from a component as possible prop values. */
export type VariantProps<Component> = StyledComponent.TransformProps<Component[StyledComponent.$$StyledComponentProps], Component[StyledComponent.$$StyledComponentMedia]>
export type VariantProps<Component extends {[key: symbol | string]: any}> = StyledComponent.TransformProps<Component[StyledComponent.$$StyledComponentProps], Component[StyledComponent.$$StyledComponentMedia]>

/** Map of CSS properties to token scales. */
export declare const defaultThemeMap: DefaultThemeMap
Expand Down

0 comments on commit 4b9610f

Please sign in to comment.