Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.39 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.39 KB

TypeScript exercises

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.

Setup and installation

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

Complete the exercises

You are now ready to complete the exercises :

  1. Basic type exercises
  2. Arrays
  3. Objects

Test your code

# 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