mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
--- old.jsDeclarationsFunctionsCjs.errors.txt
|
|
+++ new.jsDeclarationsFunctionsCjs.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
+index.js(4,18): error TS2339: Property 'cat' does not exist on type '() => void'.
|
|
+index.js(7,18): error TS2339: Property 'Cls' does not exist on type '() => void'.
|
|
+index.js(31,18): error TS2339: Property 'self' does not exist on type '<T>(a: T) => T'.
|
|
index.js(57,36): error TS2565: Property 'j' is used before being assigned.
|
|
|
|
|
|
-==== index.js (1 errors) ====
|
|
+==== index.js (4 errors) ====
|
|
module.exports.a = function a() {}
|
|
|
|
module.exports.b = function b() {}
|
|
module.exports.b.cat = "cat";
|
|
+ ~~~
|
|
+!!! error TS2339: Property 'cat' does not exist on type '() => void'.
|
|
|
|
module.exports.c = function c() {}
|
|
module.exports.c.Cls = class {}
|
|
+ ~~~
|
|
+!!! error TS2339: Property 'Cls' does not exist on type '() => void'.
|
|
|
|
/**
|
|
* @param {number} a
|
|
@@= skipped -32, +39 lines =@@
|
|
return a;
|
|
}
|
|
module.exports.f.self = module.exports.f;
|
|
+ ~~~~
|
|
+!!! error TS2339: Property 'self' does not exist on type '<T>(a: T) => T'.
|
|
|
|
/**
|
|
* @param {{x: string}} a
|