You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+33-3
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,47 @@
5
5
6
6
This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
7
7
8
-
# TypeScript
8
+
# Installing
9
9
10
-
[TypeScript](http://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](http://www.typescriptlang.org/Playground), and stay up to date via [our blog](http://blogs.msdn.com/typescript) and [twitter account](https://twitter.com/typescriptlang).
10
+
For the latest stable version:
11
11
12
+
```
13
+
npm install tslib
14
+
```
15
+
16
+
# Usage
17
+
18
+
Set the `noEmitHelpers` compiler option on the command line or in your tsconfig.json:
19
+
```
20
+
tsc --noEmitHelpers
21
+
```
22
+
23
+
Import tslib in your TypeScript sources:
24
+
```ts
25
+
import*astslibfrom"tslib";
26
+
27
+
const __extends =tslib.__extends;
28
+
const __awaiter =tslib.__awaiter;
29
+
30
+
...
31
+
```
32
+
33
+
Or use it globally on the web via `<script src="tslib.js"></script>`:
34
+
35
+
```ts
36
+
// <reference path="tslib.global.d.ts" />
37
+
var __extends =__tslib.__extends;
38
+
var __awaiter =__tslib.__awaiter;
39
+
40
+
...
41
+
```
12
42
13
43
## Contribute
14
44
15
45
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
16
46
*[Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
17
47
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
18
-
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
48
+
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
19
49
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
0 commit comments