swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedConstructorFunction.ts

15 lines
297 B
TypeScript
Raw Normal View History

// @allowJs: true
// @checkJs: true
// @target: es5
// @outDir: ./out
// @declaration: true
// @filename: jsDeclarationsExportAssignedConstructorFunction.js
/** @constructor */
module.exports.MyClass = function() {
this.x = 1
}
module.exports.MyClass.prototype = {
a: function() {
}
}