{"repo":"microsoft/tslib","free":true,"listed":false,"github":"https://github.com/microsoft/tslib","clone":"git clone https://github.com/microsoft/tslib.git","description":"Runtime library for TypeScript helpers.","language":"TypeScript","stars":1342,"topics":["typescript","typescript-helpers","import","bundle","optimize","dependency"],"license":"0BSD","category":"dev-tools","readme_excerpt":"tslib This is a runtime library for TypeScript that contains all of the TypeScript helper functions. This library is primarily used by the --importHelpers flag in TypeScript. When using --importHelpers , a module that uses helper functions like extends and assign in the following emitted file: will instead be emitted as something like the following: 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. For optimized bundles with TypeScript, you should absolutely consider using tslib and --importHelpers . Installing For the latest stable version, run: npm yarn bower JSPM Usage Set the importHelpers compiler option on the command line: or in your tsconfig.json: For bower and JSPM users You will need to add a paths mapping for tslib , e.g. For Bower users: For JSPM users: Deployment - Choose your new version number - Set it in package.json and bower.json - Create a tag: git tag [version] - Push the tag: git push --tags - Create a release in GitHub - Run the publish to npm workflow Done. Contribute There are many ways to contribute to TypeScript. Submit bugs and help us verify fixes as they are checked in. Review the source code changes. Engage with other TypeScript users and developers on StackOverflow. Join the #typescript discussion on Twitter. Contribute bug fixes. Documentation Quick tutorial Programming handbook Homepage","default_branch":null,"files":null,"tree":[],"storefront":"/r/microsoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microsoft/tslib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}