mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
51 lines
876 B
TypeScript
51 lines
876 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignedVisibility.ts] ////
|
|
|
|
//// [obj.js]
|
|
module.exports = class Obj {
|
|
constructor() {
|
|
this.x = 12;
|
|
}
|
|
}
|
|
//// [index.js]
|
|
const Obj = require("./obj");
|
|
|
|
class Container {
|
|
constructor() {
|
|
this.usage = new Obj();
|
|
}
|
|
}
|
|
|
|
module.exports = Container;
|
|
|
|
//// [obj.js]
|
|
"use strict";
|
|
module.exports = class Obj {
|
|
constructor() {
|
|
this.x = 12;
|
|
}
|
|
};
|
|
//// [index.js]
|
|
"use strict";
|
|
const Obj = require("./obj");
|
|
class Container {
|
|
constructor() {
|
|
this.usage = new Obj();
|
|
}
|
|
}
|
|
module.exports = Container;
|
|
|
|
|
|
//// [obj.d.ts]
|
|
export = Obj;
|
|
declare class Obj {
|
|
x: number;
|
|
constructor();
|
|
}
|
|
//// [index.d.ts]
|
|
export = Container;
|
|
import Obj = require("./obj");
|
|
declare class Container {
|
|
usage: Obj;
|
|
constructor();
|
|
}
|