Skip to main content

Type Alias: StringTemplate<Var>

StringTemplate<Var>: Var["length"] extends 0 ? string : Var["length"] extends number ? number extends Var["length"] ? string : `${string}${Join<Permutation<WrapStringWithBracket<Var[number]>>, `${string}`>}${string}` : never

Type Parameters

Var extends readonly string[]

Defined in

packages/core/prompts/dist/index.d.ts:43