Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsClassExtendsVisibility(target=es2015).errors.txt

20 lines
717 B
Plaintext

cls.js(7,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
cls.js(8,16): error TS2339: Property 'Strings' does not exist on type 'typeof Foo'.
==== cls.js (2 errors) ====
const Bar = require("./bar");
const Strings = {
a: "A",
b: "B"
};
class Foo extends Bar {}
module.exports = Foo;
~~~~~~~~~~~~~~~~~~~~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
module.exports.Strings = Strings;
~~~~~~~
!!! error TS2339: Property 'Strings' does not exist on type 'typeof Foo'.
==== bar.js (0 errors) ====
class Bar {}
module.exports = Bar;