mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
808 B
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'.
|