Types

WrappedText<Text, Opening, Closing>

The type represents the wrapped text of a generic type variables in order Text, Opening and Closing on the template.

wrapped-text.type.ts
type WrappedText<
  Text extends string,
  Opening extends string,
  Closing extends string
> = `${Opening}${Text}${Closing}`;

Last updated