Question · JavaScript and TypeScript course · Module 7: Advanced TypeScript
Template Literal Types
What are template literal types in TypeScript?
Answer options
- Types automatically generated from .ts files
- Types for variables storing template literals
- Types created by string interpolation, e.g., type Event =
on${string} - Types for JSDoc comments
You can check the correct answer by solving this task in the CodeWorlds game.