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(
4141 }
4242}
4343
44- export function createTheme < ThemeTokens extends Tokens > (
45- tokens : ThemeTokens ,
46- debugId ?: string ,
47- ) : [ className : string , vars : ThemeVars < ThemeTokens > ] ;
4844export function createTheme < ThemeContract extends Contract > (
4945 themeContract : ThemeContract ,
5046 tokens : MapLeafNodes < ThemeContract , string > ,
5147 debugId ?: string ,
5248) : string ;
49+ export function createTheme < ThemeTokens extends Tokens > (
50+ tokens : ThemeTokens ,
51+ debugId ?: string ,
52+ ) : [ className : string , vars : ThemeVars < ThemeTokens > ] ;
5353export function createTheme ( arg1 : any , arg2 ?: any , arg3 ?: string ) : any {
5454 const themeClassName = generateIdentifier (
5555 typeof arg2 === 'object' ? arg3 : arg2 ,
You can’t perform that action at this time.
0 commit comments