File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @vanilla-extract/css " : patch
3
+ ---
4
+
5
+ Fixes a bug causing incorrect type inference when calling ` createTheme ` with a theme contract
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ export function createGlobalTheme(
41
41
}
42
42
}
43
43
44
- export function createTheme < ThemeTokens extends Tokens > (
45
- tokens : ThemeTokens ,
46
- debugId ?: string ,
47
- ) : [ className : string , vars : ThemeVars < ThemeTokens > ] ;
48
44
export function createTheme < ThemeContract extends Contract > (
49
45
themeContract : ThemeContract ,
50
46
tokens : MapLeafNodes < ThemeContract , string > ,
51
47
debugId ?: string ,
52
48
) : string ;
49
+ export function createTheme < ThemeTokens extends Tokens > (
50
+ tokens : ThemeTokens ,
51
+ debugId ?: string ,
52
+ ) : [ className : string , vars : ThemeVars < ThemeTokens > ] ;
53
53
export function createTheme ( arg1 : any , arg2 ?: any , arg3 ?: string ) : any {
54
54
const themeClassName = generateIdentifier (
55
55
typeof arg2 === 'object' ? arg3 : arg2 ,
You can’t perform that action at this time.
0 commit comments