mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
--- old.jsDeclarationsCrossfileMerge(target=es2015).errors.txt
|
|
+++ new.jsDeclarationsCrossfileMerge(target=es2015).errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-index.js(4,1): error TS6232: Declaration augments declaration in another file. This cannot be serialized.
|
|
-
|
|
-
|
|
-==== index.js (1 errors) ====
|
|
+index.js(3,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
+index.js(4,16): error TS2339: Property 'memberName' does not exist on type '() => void'.
|
|
+
|
|
+
|
|
+==== index.js (2 errors) ====
|
|
const m = require("./exporter");
|
|
|
|
module.exports = m.default;
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
module.exports.memberName = "thing";
|
|
- ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-!!! error TS6232: Declaration augments declaration in another file. This cannot be serialized.
|
|
-!!! related TS6233 exporter.js:1:10: This is the declaration being augmented. Consider moving the augmenting declaration into the same file.
|
|
+ ~~~~~~~~~~
|
|
+!!! error TS2339: Property 'memberName' does not exist on type '() => void'.
|
|
|
|
==== exporter.js (0 errors) ====
|
|
function validate() {}
|