First TypeScript project
following course - https://app.pluralsight.com/library/courses/typescript/table-of-contents
- useful for starting in vsCode -
https://code.visualstudio.com/docs/typescript/typescript-compiling#:~:text=Visual%20Studio%20Code%20includes%20TypeScript,code%20to%20JavaScript%20(%20tsc%20HelloWorld
. tsc filename.ts
will create a js file, must be in the same folder as the ts file when using the command in the console.- need to install extension knockout.js snippets for VS code
- if an error msg pops up in console saying Accessors are only avaliable when targetting ECMAScript5 and higher use
tsc -t es5 fileName.ts
to get the .js file - create a tsconfig.json file using
tsc --init
in terminal