Skip to content

Commit

Permalink
feat(recipe-generator): type css vars in pseudo selector
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Dec 23, 2024
1 parent 1be8ec7 commit ba418b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/recipe-generator/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit ba418b8

Please sign in to comment.