mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
573 B
TypeScript
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);
|
|
}
|