Typescript - Tips & Tricks - Mapped Types
In some cases, we need to manipulate some types to create new types. In these cases, we have to use the Mapped Types.
Let's start explaining the structure of the mapped types.
type MappedTypeExample = {
[Key in "x" | "y" | "z"]: number;
};
As yo...
blog.delpuppo.net2 min read