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

21 lines
808 B
Diff

--- old.jsDeclarationsExportAssignedClassInstance3(target=es2015).errors.txt
+++ new.jsDeclarationsExportAssignedClassInstance3(target=es2015).errors.txt
@@= skipped -0, +0 lines =@@
-<no content>
+index.js(6,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
+index.js(8,16): error TS2339: Property 'additional' does not exist on type 'Foo'.
+
+
+==== index.js (2 errors) ====
+ class Foo {
+ static stat = 10;
+ member = 10;
+ }
+
+ module.exports = new Foo();
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
+
+ module.exports.additional = 20;
+ ~~~~~~~~~~
+!!! error TS2339: Property 'additional' does not exist on type 'Foo'.