Skip to content

Latest commit

 

History

History

README.md

Typescript Study Basics

Description

Meant to improve my understanding of basic Typescript.

Run Code (Environment)

Helpful Hints (Typescript.ts)

  • Commmand Line Useage (see resources):

Run a compile based on a backwards look through the fs for a tsconfig.json

tsc

Emit JS for just the index.ts with the compiler defaults

tsc index.ts

Emit JS for any .ts files in the folder src, with the default settings

tsc src/*.ts

Emit files referenced in with the compiler settings from tsconfig.production.json

tsc --project tsconfig.production.json

Emit d.ts files for a js file with showing compiler options which are booleans

tsc index.js --declaration --emitDeclarationOnly

Emit a single .js file from two files via compiler options which take string arguments

tsc app.ts util.ts --target esnext --outfile index.js

Resources & Helpful Hints: