mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
--- old.jsDeclarationsClassStatic(target=es2015).errors.txt
|
|
+++ new.jsDeclarationsClassStatic(target=es2015).errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-<no content>
|
|
+source.js(15,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
+source.js(16,16): error TS2339: Property 'Strings' does not exist on type 'typeof Handler'.
|
|
+
|
|
+
|
|
+==== source.js (2 errors) ====
|
|
+ class Handler {
|
|
+ static get OPTIONS() {
|
|
+ return 1;
|
|
+ }
|
|
+
|
|
+ process() {
|
|
+ }
|
|
+ }
|
|
+ Handler.statische = function() { }
|
|
+ const Strings = {
|
|
+ a: "A",
|
|
+ b: "B"
|
|
+ }
|
|
+
|
|
+ module.exports = Handler;
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+!!! 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 Handler'.
|
|
+
|
|
+ /**
|
|
+ * @typedef {Object} HandlerOptions
|
|
+ * @property {String} name
|
|
+ * Should be able to export a type alias at the same time.
|
|
+ */
|
|
+
|