TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open source. This repo contains the basic of typescript used in object oriented programming 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 Object Oriented programming | Languange |
|---|---|---|
| 1 | Class | Typescript |
| 2 | Constructor | Typescript |
| 3 | Property Method | Typescript |
| 4 | Constructor 2 | Typescript |
| 5 | Inheritance | Typescript |
| 6 | Super Constructor | Typescript |
| 7 | Method Overriding | Typescript |
| 8 | Visibility | Typescript |
| 9 | Readonly Modifier | Typescript |
| 10 | Getter Setter | Typescript |
| 11 | Static Property Method | Typescript |
| 12 | Return Type | Typescript |
| 13 | Abstract Class | Typescript |
| 14 | Interface | Typescript |
| 15 | Interface Optional Property | Typescript |
| 16 | Interface Readonly Property | Typescript |
| 17 | Interface Inheritance | Typescript |
| 18 | Interface Extends Class | Typescript |
| 19 | Dependency Injection | Typescript |
| 20 | Generic | Typescript |
| 21 | Generic Interface | Typescript |
| 22 | Generic Types | Typescript |
| 23 | Generic Class | Typescript |
| 24 | Generic Class 2 | Typescript |
| 25 | Generic Constraints | Typescript |
| 26 | Generic Class Constraints | Typescript |
| 27 | Type Parameters In Generics constraint | Typescript |
| 28 | Namespace | Typescript |
| 29 | Type Vs Interface | 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 tsfor convert file .ts => .js ( prefer usinggitbashif you onWindows) - Edit
scriptsinside 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
