TS CSSVars - API ReferenceDocs


TS CSSVars - API Reference / MergeVars

Type Alias: MergeVars<T>

MergeVars<T>: T extends [infer H, ...(infer R)] ? H extends CssVarContext<infer T2> ? R extends NonEmptyArray<CssVarContext<string>> ? MergeVars<R> extends CssVarContext<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>>

Defined in

lib/mergeCssVars.ts:8