From 31a0441267d5e734572bff0471e7c80ff220e49a Mon Sep 17 00:00:00 2001 From: Tim Morris Date: Tue, 25 Apr 2023 17:21:12 -0400 Subject: [PATCH] fix: use intersection for media keys --- src/types/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/theme.ts b/src/types/theme.ts index 0eb56166..f954b1a7 100644 --- a/src/types/theme.ts +++ b/src/types/theme.ts @@ -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 PinceauTheme['media'] & string