Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub(target=es2015).js

51 lines
920 B
TypeScript

//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub.ts] ////
//// [index.js]
module.exports = class {
/**
* @param {number} p
*/
constructor(p) {
this.t = 12 + p;
}
}
module.exports.Sub = class {
constructor() {
this.instance = new module.exports(10);
}
}
//// [index.js]
"use strict";
module.exports = class {
/**
* @param {number} p
*/
constructor(p) {
this.t = 12 + p;
}
};
module.exports.Sub = class {
constructor() {
this.instance = new module.exports(10);
}
};
//// [index.d.ts]
export = _exports;
declare class _exports {
t: number;
/**
* @param {number} p
*/
constructor(p: number);
}
declare namespace _exports {
export class Sub {
instance: import(".");
constructor();
}
}