Skip to content

Commit c66be53

Browse files
andjsrkaskoufis
andauthored
Remove unnecessary intersections (#1560)
Co-authored-by: Adam Skoufis <[email protected]>
1 parent 134117d commit c66be53

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.changeset/warm-seahorses-taste.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/css': patch
3+
---
4+
5+
Remove unnecessary intersections in a few types

packages/css/src/types.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ interface AllQueries<StyleType>
6262
export type WithQueries<StyleType> = StyleType & AllQueries<StyleType>;
6363

6464
interface SelectorMap {
65-
[selector: string]: CSSPropertiesWithVars &
66-
WithQueries<CSSPropertiesWithVars>;
65+
[selector: string]: WithQueries<CSSPropertiesWithVars>;
6766
}
6867

6968
export interface StyleWithSelectors extends CSSPropertiesAndPseudos {
7069
selectors?: SelectorMap;
7170
}
7271

73-
export type StyleRule = StyleWithSelectors & WithQueries<StyleWithSelectors>;
72+
export type StyleRule = WithQueries<StyleWithSelectors>;
7473

75-
export type GlobalStyleRule = CSSPropertiesWithVars &
76-
WithQueries<CSSPropertiesWithVars>;
74+
export type GlobalStyleRule = WithQueries<CSSPropertiesWithVars>;
7775

7876
export type GlobalFontFaceRule = Omit<AtRule.FontFaceFallback, 'src'> &
7977
Required<Pick<AtRule.FontFaceFallback, 'src'>>;

0 commit comments

Comments
 (0)