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

34 lines
573 B
TypeScript

//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedClassExpression.ts] ////
//// [index.js]
module.exports = class Thing {
/**
* @param {number} p
*/
constructor(p) {
this.t = 12 + p;
}
}
//// [index.js]
"use strict";
module.exports = class Thing {
/**
* @param {number} p
*/
constructor(p) {
this.t = 12 + p;
}
};
//// [index.d.ts]
export = Thing;
declare class Thing {
t: number;
/**
* @param {number} p
*/
constructor(p: number);
}