This repository contains type exercises for the TypeScript course at https://typescript-ohjelmointi.github.io/ (in Finnish).
Each subfolder in src contains a markdown file with an example usage of a specific TypeScript feature, and a TypeScript file, where you need to complete an exercise. Follow the instructions marked in the comments in the .ts
files.
Note that in most exercises, the code may not "do" anything when executed. Instead, we will focus more on defining the correct types that are used in compilation phase.
To get your own copy of this exercise repository, either clone it with the Git tool or download it as a zip archive.
The project has been initialized with the following commands:
npm install -D typescript
npx tsc --init
To start working on the project, run the npm install
command:
npm install
- https://www.typescriptlang.org/
- https://github.com/microsoft/TypeScript
- https://www.typescriptlang.org/docs/handbook/intro.html
- One good blog source for advanced types: https://aishwarya2593.medium.com/create-wonders-with-advanced-typescript-types-525acf302770
- One good youtube playlist for advanced types: https://www.youtube.com/watch?v=lMfGp29Ht8c&list=PLIvujZeVDLMx040-j1W4WFs1BxuTGdI_b
The exercises and examples are created by @koodiohto.