Since 2.1, typescript support for external helper library, all the emitted function goes to the tslib
package
npm install --save tslib
change your tsconfig:
{
"compilerOptions": {
//all the other stuff
"importHelpers": true
}
}
then TypeScript will automatically import tslib
package if necessary
like example below
var tslib_1 = require("tslib");
var MyClass = (function (_super) {
tslib_1.__extends(MyClass, _super);
function MyClass() {
return _super !== null && _super.apply(this, arguments) || this;
}
return MyClass;
}(controller_1.Controller));