/** * Join the literal string withing the tuple into a union string type. * * @template T Tuple of strings to join. * @returns The union string type. * @example TupleJoin<['a' | 'b', 'c' | 'd']> // 'ac' | 'ad' | 'bc' | 'bd' * @deprecated Use `StringJoin` instead. */ type TupleJoin = T extends [infer A extends string, ...infer B extends string[]] ? `${A}${TupleJoin}` : ''; export type { TupleJoin };