Type Alias: StringTemplate<Var>
StringTemplate<
Var
>:Var
["length"
] extends0
?string
:Var
["length"
] extendsnumber
?number
extendsVar
["length"
] ?string
: `${string}${Join<Permutation<WrapStringWithBracket<Var[number]>>, `${string}`>}${string}` :never
Type Parameters
• Var extends readonly string
[]
Defined in
packages/core/prompts/dist/prompts/index.d.ts:39