Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice
Creating a Template Literal Type
Arrange the stages of creating a template literal type:
Items to put in order
- Use ${} interpolation in the template type
- TypeScript generates a union of all variants
- Define base literal types (e.g. 'get' | 'set')
You can check the correct answer by solving this task in the CodeWorlds game.