targettells TS what type of JS to generate, for
es5for conversion is required (for example let/const -> var, class -> function + prototype, etc.), whereas
es6can just leave the original code as is (after removing type information).
typestells TS about what types exists and what their API is. When using
libyou are asking TS to add known core types that it already has definitions for, without having to add those yourself (for example,
@types/core-js). When you
importyou adding more types that TS knows about. Additionally, you can use the
typesconfiguration property to add global types.
polyfillsare required at runtime to ensure that older browsers can use the constructs (such as Promise) that exist natively in modern browsers. At this point, TS is not involved at all.
View GitHub Profile
|<?xml version="1.0" encoding="utf-8" ?>|
|<Description>Code snippet for cheers during a live stream</Description>|
I hereby claim:
- I am M-Zuber on github.
- I am mordzuber (https://keybase.io/mordzuber) on keybase.
- I have a public key whose fingerprint is 6288 6DCE 6286 2CFC 772B 0B9E F0AA 364E A4D6 F64B
To claim this, I am signing this object: