TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open source. This repo contains the fundamental or basic of typescript and this repo is just for exercise purpose about typescript. There is build folder that contains how typescript runs in javascript version so we can compare between javascript and typescript. Build folder will appear while we run the script
No | Basic | Languange |
---|---|---|
1 | Basic Type | Typescript |
2 | Array | Typescript |
3 | Class | Typescript |
4 | Enum | Typescript |
5 | Function | Typescript |
6 | Generic | Typescript |
7 | Interface | Typescript |
8 | Object | Typescript |
9 | Class Abstract | Typescript |
10 | Class Inheritance | Typescript |
11 | Class Generic | Typescript |
12 | Module | Typescript |
- Clone this repository
- Install the dependencies by running
yarn
- Select in package.json what file TS you want to run and watch
- Open first terminal and execute use
yarn ts
for convert file .ts => .js ( prefer usinggitbash
if you onWindows
) - Edit
scripts
inside package.json in key["dev": "nodemon ./build/~"]
and choose which JS script you want to execute - Open second terminal and execute nodemon using
yarn dev