Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

- 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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: