python3 -m http.server
Setup
- include script file as a JS file
- create a matching JS file
- run
tsc --noImplicitAny --strictNullChecks script.ts
- refresh the page in your browser to see the results
Compiler flags:
// --noImplicitAny: this won't allow
function func(s) {
console.log(s);
}
// --strictNullChecks: this won't allow