Type interpolation and iterating through properties in TypeScript
Template Literal Types
You can concat and interpolate types together like strings
type World = "world";
type Greeting = `hello ${World}`;
Documentation — Template Literal Types
Mapped Types
You can iterate through properties of a type as if the ...
tachiboku.hashnode.dev2 min read