Representing wizard state in TypeScript
My solution to describing the state of a multi-step wizard in TypeScript.
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.
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.