From ba418b8ad2ba9a9ffcdff79255b31339c489b560 Mon Sep 17 00:00:00 2001 From: malangcat Date: Tue, 24 Dec 2024 01:24:55 +0900 Subject: [PATCH] feat(recipe-generator): type css vars in pseudo selector --- packages/recipe-generator/core/src/types.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/recipe-generator/core/src/types.ts b/packages/recipe-generator/core/src/types.ts index 0a88708ea..95942de89 100644 --- a/packages/recipe-generator/core/src/types.ts +++ b/packages/recipe-generator/core/src/types.ts @@ -10,9 +10,13 @@ type SVGExtraProperties = { export type StyleObject = CSS.Properties & SVGExtraProperties & { - [P in CSS.SimplePseudos as `&${P}`]?: CSS.Properties; + [P in CSS.SimplePseudos as `&${P}`]?: CSS.Properties & { + [K in string as `--${K}`]?: string; + }; } & { - [K in string as `&${K}`]?: CSS.Properties; + [K in string as `&${K}`]?: CSS.Properties & { + [K in string as `--${K}`]?: string; + }; } & { [K in string as `--${K}`]?: string; };