Type-safe nullability without strictNullChecks
Lack of strictNullChecks makes it hard to express nullability of values. fp-ts's Option
comes to the type-safe rescue.
TypeScript is a statically-typed superset of JavaScript. It is my go-to choice when writing any code that would otherwise be written in JavaScript. It is also the language that I am most profficient in.
Lack of strictNullChecks makes it hard to express nullability of values. fp-ts's Option
comes to the type-safe rescue.
My solution to describing the state of a multi-step wizard in TypeScript.
Two approaches in TypeScript to changing the type of an options
parameter based on a generic function parameter.
The fp-ts library puts errors to the forefront and helps write type-safe code that correctly reports errors. Collecting errors from multiple operations can sometimes lead to boilerplate code. Let's see if there is a way to make that code shorter.