ChaitanyaKiran14 / Typescript2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript :
npm install -g tsc
tsc
npm install -g typescript --force      ->  command to overwrite existing files.
npx tsc                                -> gives you all the commnads that you can perform.
npx tsc cal.ts                         -> to generate js file of TS so that you can actually compile js code. 

tsc --init            ->Creates a tsconfig.json with the recommended settings in the working directory.

interface is nothing but when you are creating an object it is diffficult to define  what kind of data will be stored inside that object. So we globally declare the types initially. 

About


Languages

Language:TypeScript 59.8%Language:JavaScript 40.2%