Files
tsgo/testdata/baselines/reference/submodule/conformance/jsContainerMergeTsDeclaration2.errors.txt.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'.