You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitDefaultExportWithStaticAssignment.d.ts.diff
b.ts(4,1): error TS4032: Property 'val' of exported interface has or is using name 'I' from private module '"a"'.
22
-
+b.ts(4,1): error TS9023: Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function.
23
-
24
-
25
-
==== a.ts (0 errors) ====
26
-
interface I {}
27
-
export function f(): I { return null as I; }
28
-
-==== b.ts (1 errors) ====
29
-
+==== b.ts (2 errors) ====
30
-
import {f} from "./a";
31
-
32
-
export function q(): void {}
33
-
q.val = f();
34
-
~~~~~
35
-
!!! error TS4032: Property 'val' of exported interface has or is using name 'I' from private module '"a"'.
36
-
+ ~~~~~
37
-
+!!! error TS9023: Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function.
38
-
39
-
\ No newline at end of file
21
+
b.ts(5,14): error TS2304: Cannot find name 'I'.
22
+
b.ts(5,14): error TS4025: Exported variable 'val' has or is using private name 'I'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitFunctionDuplicateNamespace.d.ts.diff
Copy file name to clipboardExpand all lines: tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitFunctionKeywordProp.d.ts.diff
0 commit comments