|
|
|
|
|
by c-hendricks
1193 days ago
|
|
- easy referencing the type of another struct's field. As in `function parseInput(input: SomeType['someField']) { }` - it's ability to infer types in general - parsing. given a route string like `/users/:userId` TypeScript can force you to always pass `{ userId: 1234 }` when actually building the route without having to declare the interface anywhere - conditional types |
|