Skip to content
forked from microsoft/tslib

Runtime library for TypeScript helpers.

License

Notifications You must be signed in to change notification settings

filips-alpe/tslib

 
 

Repository files navigation

Runtime

This is a runtime library for TypeScript that contains all of the TypeScript helper functions.

Installing

For the latest stable version:

npm

npm install tslib

bower

bower install tslib

JSPM

jspm install npm:tslib

Usage

Set the importHelpers compiler option on the command line:

tsc --importHelpers file.ts

or in your tsconfig.json:

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

For bower and JSPM users

You will need to add a paths mapping for tslib, e.g. For Bower users:

{
    "compilerOptions": {
        "module": "amd",
        "importHelpers": true,
        "baseUrl": "./",
        "paths": {
            "tslib" : ["bower_components/tslib/tslib.d.ts"]
        }
    }
}

For JSPM users:

{
    "compilerOptions": {
        "module": "System",
        "importHelpers": true,
        "baseUrl": "./",
        "paths": {
            "tslib" : ["jspm_packages/npm/tslib@1.3.0/tslib.d.ts"]
        }
    }
}

Contribute

There are many ways to contribute to TypeScript.

Documentation

About

Runtime library for TypeScript helpers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.6%
  • HTML 0.4%