We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
VarDeclaration
createVar
1 parent a440470 commit 0b2c09eCopy full SHA for 0b2c09e
2 files changed
.changeset/little-mangos-type.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vanilla-extract/css": patch
3
4
+
5
+Swap the order of `createVar`'s overloads to enable inference of `VarDelcaration` type
packages/css/src/vars.ts
@@ -38,11 +38,11 @@ const buildPropertyRule = ({
38
...(initialValue != null ? { initialValue } : {}),
39
});
40
41
+export function createVar(debugId?: string): CSSVarFunction;
42
export function createVar(
43
declaration: VarDeclaration,
44
debugId?: string,
45
): CSSVarFunction;
-export function createVar(debugId?: string): CSSVarFunction;
46
47
debugIdOrDeclaration?: string | VarDeclaration,
48
0 commit comments