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