|
You are here |
sitr.us | ||
| | | | |
blog.logrocket.com
|
|
| | | | | Explore what TypeScript types are, with a deep dive into the `never` and `unknown` types and a comparison between them and the `any` type. | |
| | | | |
blog.michal.pawlik.dev
|
|
| | | | | TL;DR Today I learned how to mimic Scala-like value class in Typescript Doing day to day scala I often use value classes to model the data like: final case class UserId(value: String) extends AnyVal final case class City(value: String) extends AnyVal This is especially useful when you want to add some meaning to primitive types. It also makes the compiler help you to avoid passing irrelevant data to downstream methods. | |
| | | | |
mariusschulz.com
|
|
| | | | | TypeScript 2.0 introduced a new primitive type called never, the type of values that never occur. It helps model the completion behavior of functions more accurately. | |
| | | | |
www.alexstrick.com
|
|
| | | |||