wallet-core/node_modules/tslib
2017-05-28 00:40:43 +02:00
..
docs add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
.gitattributes add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
.npmignore add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
bower.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
CopyrightNotice.txt add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
LICENSE.txt add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
README.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
tslib.d.ts add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
tslib.es6.html add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
tslib.es6.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
tslib.html add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
tslib.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00

Runtime

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

Installing

For the latest stable version:

npm

# TypeScript 2.3.3 or later
npm install tslib

# TypeScript 2.3.2 or earlier
npm install tslib@1.6.1

bower

# TypeScript 2.3.3 or later
bower install tslib

# TypeScript 2.3.2 or earlier
bower install tslib@1.6.1

JSPM

# TypeScript 2.3.3 or later
jspm install npm:tslib

# TypeScript 2.3.2 or earlier
jspm install npm:tslib@1.6.1

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.7.0/tslib.d.ts"]
        }
    }
}

Contribute

There are many ways to contribute to TypeScript.

Documentation