ts-koans
v0.0.13
Published
Typescript learning exercises
Maintainers
Readme
ts-koans
Inspired by Elixir Koans, ts-koans is an interactive way to learn about TypeScript's type system, from the basic to the complex.
Prerequisites
- Node.js >= 20
- TypeScript
Note that if you use a version manager such as nvm, n, asdf or mise, your tsc installation might not be globally available. Please make sure they're in your $PATH before running ts-koans.
Installing from npm (either globally or locally) will download tsc and make it available, so running ts-koans will use the one installed by npm, if available.
Running
NPM
npm i -g ts-koansand then
ts-koansGitHub Release
Download the latest release for your architecture, then extract and run tskoans from your favorite terminal emulator.
From Source
Alternatively, you may clone this repo and run go run . from the root. This requires golang to be available in your $PATH.
Problems?
Please open an issue if you encounter any errors! This is still very early in development. It is not "battle-tested" or "hardened." In fact it is quite soft and pleasantly squishy.
Contributing
What, you think you can make it better? You probably can! I'm not a golang expert, or a typescript expert, or an expert in many other things. If you want to open a PR with some enhancements, I will do my best to review it (but I make no promises).
