Skip to content

Instantly share code, notes, and snippets.

@matthieubosquet
Last active January 1, 2021 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieubosquet/63ffb99516de7d5ab4a1a99dc24d6690 to your computer and use it in GitHub Desktop.
Save matthieubosquet/63ffb99516de7d5ab4a1a99dc24d6690 to your computer and use it in GitHub Desktop.

TypeScript Cheat Sheet

Table of Contents

TSConfig

See the TSConfig Reference.

Issues

There is a growing overlap in Node and Browser APIs that is currently not properly supported at the compiler level: microsoft/TypeScript#41727

ECMAScript Notes

Programming language standardized by ECMA International in ECMA-262. ECMAScript and Javascript are essentially synonymous. The standard moved to a yearly release in June 2015 with ECMAScript version 6 named ES2015 (colloquially and interchangeably called ES6 or ES2015).

Feature support:

⚠️ Consider checking Airbnb babel preset for inspiration. See Rollup plugin Babel to apply transformations on Rollup generated code.

⚠️ The tail call optimisation ES2015 feature has very poor support as of July 2020. See "Are functions in JavaScript tail call optimized?" on Stack Overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment