init typescript

Getting Start

install typescript

//  if yet
$ npm i -g typescript


// create tsconfig.json
$ tsc --init

tsconfig.json Clean

// Delete Comment Out Line 
$ ^.*    // .*$(\r\n|\r|\n)?
 
$ ^    /*/.*$(\r\n|\r|\n)?

tsconfig.json Basic

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true
  }
}

test

Last updated