v2.1.0 : Read changelog
This repo contains some basic exercises to discover TypeScript. This allows you to understand the differences between JavaScript and TypeScript, and understand how you can use types to allow better coding experience.
This repository use the Deno runtime, don't forget to install it first on your system, instructions here. We recommend you to install corresponding deno extension in your favourite editor.
Then, you can set up this repo on your computer :
# Clone the repository
git clone git@github.com:jobtrek/ex-ts.git
# Move into the exercises repository
cd ex-ts
You are now ready to complete the exercises :
# You can run all the tests with (this will check types, then run tests)
deno test src/
# You can run a specific test suite with the file name :
deno test src/basics/types_test.ts
# If you want to check only types, you can use the check subcommand
deno check src/
# Or for specific file
deno check src/basics/types_test.ts