This repository contains exercises for my workshop Functional Typescript Programming with confidence. Each exercise corresponds to a topic in the workshop, and ranges from immutability and pure functions to more complex constructions like eithers and readers through the use of the fp-ts library.
Every exercise has at least three files:
| File name | Description |
|---|---|
| exercise.ts | The actual exercise to solve |
| exercise.test.ts | Unit tests for this particular exercise |
| solution.ts | A possible solution (and sometimes additional solutions) |
Please try to solve the exercises before looking at the solutions.
npm ito install dependenciesnpm run buildto compile and buildnpm testto run the unit tests
The repository contains a Codespace configuration, so it is possible to fork the repository and fire up a codepsace to get started. By using the codespace you'll get several nice VSCode extensions that runt tests etc automatically.