mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
654 B
Diff
19 lines
654 B
Diff
--- old.jsContainerMergeTsDeclaration2.errors.txt
|
|
+++ new.jsContainerMergeTsDeclaration2.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
+b.js(1,3): error TS2339: Property 'prototype' does not exist on type 'typeof C'.
|
|
b.js(2,1): error TS2322: Type 'number' is not assignable to type '() => void'.
|
|
|
|
|
|
@@= skipped -4, +5 lines =@@
|
|
declare namespace C {
|
|
function bar(): void
|
|
}
|
|
-==== b.js (1 errors) ====
|
|
+==== b.js (2 errors) ====
|
|
C.prototype = {};
|
|
+ ~~~~~~~~~
|
|
+!!! error TS2339: Property 'prototype' does not exist on type 'typeof C'.
|
|
C.bar = 2;
|
|
~~~~~
|
|
!!! error TS2322: Type 'number' is not assignable to type '() => void'.
|