TypeScript Exercises
์ํฐ๋ ์ธ์ ์์ ์ถ์ฒ ๋ฐ์ ํ์ ์คํฌ๋ฆฝํธ ๋ฌธ์ ํ์ด ์ฌ์ดํธ ๋งํฌ
์ด 16๋จ๊ณ์ ๋ฌธ์ ๊ฐ ์๊ณ , 9๋จ๊ณ ์ด์์ด๋ฉด ํ์ ์คํฌ๋ฆฝํธ์ ์์ ๊ฐ์ ๊ฐ์ ธ๋ ๋๋ค๊ณ ํ๋ค.
ํ์ฌ ํ์ ์คํฌ๋ฆฝํธ ์์ค ํ์ธ ๊ฒธ ํ์ด๋ฅผ ์์ํด๋ณด์ !
/*
Welcome to:
................................................................
. .
. #################### #################### E .
. #################### #################### X .
. #### #### E .
. #### #### R .
. #### #################### C .
. #### #### I .
. #### #### S .
. #### #################### E .
. #### #################### S .
. .
................................................................
The goal: Let everyone play with many different TypeScript features
and get an overview of TypeScript capabilities and principles.
Things to cover:
1. Basic typing.
2. Refining types.
3. Union types.
4. Merged types.
5. Generics.
6. Type declarations.
7. Module augmentation.
8. Advanced type mapping.
Rules and principles:
1. Avoid using "any" type at all costs.
2. Difficulty quickly grows one exercise after another.
3. Feel free to send pull requests if you've come up
with improvements!
4. Provide feedback to the creator of these exercises.
5. Enjoy.
Brief UI guide:
+--------------------------------------------------------------+
| TypeScript exercises |
+--------------------------------------------------------------+
| Exercises 1ยท2ยท3ยท4... << Navigate through exercises >> |
+---------------+----------------------------------------------+
| Files | file.ts << Filename and status >> |
+---------------+----------------------------------------------+
| file.ts | 1 import {x} from 'y'; |
| dir | 2 |
| sub.ts | 3 |
| | |
| << Current | << Currently selected file code editor >> |
| exercise file | |
| structure >> +----------------------------------------------+
| | |
| | << Errors to fix in order to proceed >> |
| | |
+---------------+----------------------------------------------+
*/
Last updated
Was this helpful?