Interfaces
Generics
Enums
Type Guards
Decorators
ts-node src/index.ts
npx tsc
node dist/index.js
npm install --save-dev typescript
npx tsc –init
tsc src/index.ts src/types/personUtils.ts
node index.js
first set registry
npm config set registry https://sanjeet-registry-612233812744.d.codeartifact.ap-south-1.amazonaws.com/npm/my-private-npm/
(or)
aws codeartifact login --tool npm --repository my-private-npm --domain sanjeet-registry --domain-owner 612233812744
npm update @my-scope/hello-package
switch to public registry:
npm set registry https://registry.npmjs.org/
1)compile to JS-> node, browser : tsc filename.ts
2)directly with ts-node
3)Bundle with a Bundling tool (webpack,parcel) and run in browser
javascript games: https://github.com/thisisabhishek/javascriptgames