TypeScript · Emit

importHelpers

Allow importing helper functions from tslib once per project, instead of including them per-file.

Syntax
"importHelpers": true

Example

Example
{
  "compilerOptions": {
    "importHelpers": true
  }
}

More in this group

declaration declarationDir declarationMap downlevelIteration emitBOM emitDeclarationOnly inlineSourceMap inlineSources

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course