Notes on Typescript
Pick
Pick<type, keys>
Pick keys only from type.Omit
Omit<type, “key1” | “key2”>
opposite Pick Pick all from type exclude keys.Record
Record<keys, type>
Construct object with keys and values of type type.
Search
Pick Pick<type, keys>
Pick keys only from type.
Omit Omit<type, “key1” | “key2”>
opposite Pick
Pick all from type exclude keys.
Record Record<keys, type>
Construct object with keys and values of type type.