Skip to content

Commit

Permalink
fix(types): PinceauMediaQueries not giving correct suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
wypratama committed Apr 16, 2023
1 parent ce3602a commit 171155a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export type PinceauTokensPaths = GeneratedPinceauPaths

export type PinceauUtils = GeneratedPinceauUtils

export type PinceauMediaQueries = 'dark' | 'light' | 'initial' | (keyof PinceauTheme['media'] extends string ? keyof PinceauTheme['media'] : never)
export type PinceauMediaQueries = 'dark' | 'light' | 'initial' | keyof Pick<PinceauTheme, 'media'>['media']

0 comments on commit 171155a

Please sign in to comment.