Skip to content

Commit

Permalink
fix(typings): error when theme is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Apr 7, 2020
1 parent f7cb679 commit e0d2c29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/glaze/src/useStyling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ type ResolveAlias<T> = ResolveShorthand<
export type ThemedStyle = Style &
{
// Autocomplete for themed values, aliases and shorthands
[key in
[key in Extract<
| keyof ThemeOrAny['aliases']
| keyof ThemeOrAny['shorthands']
| keyof ThemeOrAny['resolvers']]?:
| keyof ThemeOrAny['resolvers'],
string
>]?:
| keyof ThemeOrAny['scales'][ThemeOrAny['resolvers'][ResolveAlias<key>]]

// Allow non-themed CSS values
Expand Down

0 comments on commit e0d2c29

Please sign in to comment.