Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / tslib / README.md
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/tslib/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/tslib/README.md
new file mode 100644 (file)
index 0000000..2038cf9
--- /dev/null
@@ -0,0 +1,142 @@
+# tslib\r
+\r
+This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.\r
+\r
+This library is primarily used by the `--importHelpers` flag in TypeScript.\r
+When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:\r
+\r
+```ts\r
+var __assign = (this && this.__assign) || Object.assign || function(t) {\r
+    for (var s, i = 1, n = arguments.length; i < n; i++) {\r
+        s = arguments[i];\r
+        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r
+            t[p] = s[p];\r
+    }\r
+    return t;\r
+};\r
+exports.x = {};\r
+exports.y = __assign({}, exports.x);\r
+\r
+```\r
+\r
+will instead be emitted as something like the following:\r
+\r
+```ts\r
+var tslib_1 = require("tslib");\r
+exports.x = {};\r
+exports.y = tslib_1.__assign({}, exports.x);\r
+```\r
+\r
+Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.\r
+For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.\r
+\r
+# Installing\r
+\r
+For the latest stable version, run:\r
+\r
+## npm\r
+\r
+```sh\r
+# TypeScript 2.3.3 or later\r
+npm install --save tslib\r
+\r
+# TypeScript 2.3.2 or earlier\r
+npm install --save tslib@1.6.1\r
+```\r
+\r
+## yarn\r
+\r
+```sh\r
+# TypeScript 2.3.3 or later\r
+yarn add tslib\r
+\r
+# TypeScript 2.3.2 or earlier\r
+yarn add tslib@1.6.1\r
+```\r
+\r
+## bower\r
+\r
+```sh\r
+# TypeScript 2.3.3 or later\r
+bower install tslib\r
+\r
+# TypeScript 2.3.2 or earlier\r
+bower install tslib@1.6.1\r
+```\r
+\r
+## JSPM\r
+\r
+```sh\r
+# TypeScript 2.3.3 or later\r
+jspm install tslib\r
+\r
+# TypeScript 2.3.2 or earlier\r
+jspm install tslib@1.6.1\r
+```\r
+\r
+# Usage\r
+\r
+Set the `importHelpers` compiler option on the command line:\r
+\r
+```\r
+tsc --importHelpers file.ts\r
+```\r
+\r
+or in your tsconfig.json:\r
+\r
+```json\r
+{\r
+    "compilerOptions": {\r
+        "importHelpers": true\r
+    }\r
+}\r
+```\r
+\r
+#### For bower and JSPM users\r
+\r
+You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:\r
+\r
+```json\r
+{\r
+    "compilerOptions": {\r
+        "module": "amd",\r
+        "importHelpers": true,\r
+        "baseUrl": "./",\r
+        "paths": {\r
+            "tslib" : ["bower_components/tslib/tslib.d.ts"]\r
+        }\r
+    }\r
+}\r
+```\r
+\r
+For JSPM users:\r
+\r
+```json\r
+{\r
+    "compilerOptions": {\r
+        "module": "system",\r
+        "importHelpers": true,\r
+        "baseUrl": "./",\r
+        "paths": {\r
+            "tslib" : ["jspm_packages/npm/tslib@1.13.0/tslib.d.ts"]\r
+        }\r
+    }\r
+}\r
+```\r
+\r
+\r
+# Contribute\r
+\r
+There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.\r
+\r
+* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.\r
+* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).\r
+* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).\r
+* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.\r
+* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).\r
+\r
+# Documentation\r
+\r
+* [Quick tutorial](http://www.typescriptlang.org/Tutorial)\r
+* [Programming handbook](http://www.typescriptlang.org/Handbook)\r
+* [Homepage](http://www.typescriptlang.org/)\r