Skip to content

Glossary: TypeScript Beyond the Basics

Template literal type

Also written: template literal types

A string type built like a template string. Given a union, it makes one string per member, so `${Status}Count` gives `"pendingCount" | "paidCount" | ...`.

Where the book teaches it

Related terms

Mapped typeas (key renaming)