TypeScript/tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts
Wesley Wigham 155610e114
Better support class instances assigned to the module object for JS declarations (#40037)
* Better support class instances assigned to the module object for JS declarations

* Extract constant
2020-09-05 02:23:12 -07:00

9 lines
164 B
TypeScript

// @allowJs: true
// @checkJs: true
// @target: es5
// @outDir: ./out
// @declaration: true
// @filename: index.js
class Foo {}
module.exports = new Foo();