|
You are here |
sitr.us | ||
| | | | |
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. | |
| | | | |
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. | |
| | | | |
wicki.io
|
|
| | | | | Learn what Typescript feature is possible to implement as Type Alias or Interface and how do they compare. | |
| | | | |
blog.jcoglan.com
|
|
| | | |||