mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
48 lines
829 B
TypeScript
48 lines
829 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassExtendsVisibility.ts] ////
|
|
|
|
//// [bar.js]
|
|
class Bar {}
|
|
module.exports = Bar;
|
|
//// [cls.js]
|
|
const Bar = require("./bar");
|
|
const Strings = {
|
|
a: "A",
|
|
b: "B"
|
|
};
|
|
class Foo extends Bar {}
|
|
module.exports = Foo;
|
|
module.exports.Strings = Strings;
|
|
|
|
//// [bar.js]
|
|
"use strict";
|
|
class Bar {
|
|
}
|
|
module.exports = Bar;
|
|
//// [cls.js]
|
|
"use strict";
|
|
const Bar = require("./bar");
|
|
const Strings = {
|
|
a: "A",
|
|
b: "B"
|
|
};
|
|
class Foo extends Bar {
|
|
}
|
|
module.exports = Foo;
|
|
module.exports.Strings = Strings;
|
|
|
|
|
|
//// [bar.d.ts]
|
|
export = Bar;
|
|
declare class Bar {
|
|
}
|
|
//// [cls.d.ts]
|
|
export = Foo;
|
|
export { Strings };
|
|
import Bar = require("./bar");
|
|
declare const Strings: {
|
|
a: string;
|
|
b: string;
|
|
};
|
|
declare class Foo extends Bar {
|
|
}
|