File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export function defineTokens<T extends TokenConfig>(tokenConfig: T): CreateToken
219
219
} , { } as TokenConfig ) ;
220
220
221
221
// Create a wrapped styles function that resolves token references
222
- const sva : typeof styles = ( config : any ) => {
222
+ const sva : typeof styles = < V extends VariantOptions < V > > ( config : VariantStyleConfig < V > ) => {
223
223
// Resolve tokens in base styles
224
224
const resolvedBase = config . base ? resolveTokens ( config . base , tokens ) : config . base ;
225
225
@@ -236,8 +236,8 @@ export function defineTokens<T extends TokenConfig>(tokenConfig: T): CreateToken
236
236
{ } ,
237
237
) ;
238
238
return { ...acc , [ key ] : resolvedGroup } ;
239
- } , { } )
240
- : { } ;
239
+ } , { } ) as V
240
+ : { } as V ;
241
241
242
242
// Resolve tokens in compound variants
243
243
const resolvedCompoundVariants = config . compoundVariants ?. map ( ( compound : any ) => ( {
You can’t perform that action at this time.
0 commit comments