mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
340 B
TypeScript
20 lines
340 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassInstance1.ts] ////
|
|
|
|
//// [index.js]
|
|
class Foo {}
|
|
|
|
module.exports = new Foo();
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
class Foo {
|
|
}
|
|
module.exports = new Foo();
|
|
|
|
|
|
//// [index.d.ts]
|
|
declare const _exports: Foo;
|
|
export = _exports;
|
|
declare class Foo {
|
|
}
|