Skip to content

Instantly share code, notes, and snippets.

View ben-polinsky's full-sized avatar

Ben Polinsky ben-polinsky

  • Bentley Systems
  • Philadelphia
View GitHub Profile

A quick dive into TSConfig

Target

Determines which version of javascript should be emitted. If you need to use a feature introduced in ES2029, for instance, then use that or higher. No polyfils will be added, though some syntax will be down-leveled: const/let => var if you choose ES5, for instance.

Lib

Simply tells the TS compiler to include types for these features. DOM, WebWorker for example. This works with the above "target" setting, allowing you to include types the target doesn't yet support.

ITWIN_ID=
IMODEL_ID=
CLIENT_ID=