Closed
Description
For the follwing:
class Foo{
}
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Foo = function Foo() {
_classCallCheck(this, Foo);
};
Not really needed for TypeScript. But a request for a similar emit was made for TypeScript : http://stackoverflow.com/q/34945858/390330
Purely for tracking 🌹