TS CSSVars - API Reference • Docs
TS CSSVars - API Reference / MergeVars
Type Alias: MergeVars<T>
MergeVars<
T
>:T
extends [infer H,...(infer R)
] ?H
extendsCssVarContext
<infer T2> ?R
extendsNonEmptyArray
<CssVarContext
<string
>> ?MergeVars
<R
> extendsCssVarContext
<infer T3> ?CssVarContext
<`${T2}${T3}`> :never
:H
:never
:never
Recursively merge all CssVarContext on an array into a single CssVarContext.
Type Parameters
• T extends NonEmptyArray
<CssVarContext
<string
>>