mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
--- old.transpile/declarationCrossFileInferences.d.ts
|
|
+++ new.transpile/declarationCrossFileInferences.d.ts
|
|
@@= skipped -20, +20 lines =@@
|
|
|
|
|
|
//// [Diagnostics reported]
|
|
-consumes.ts(2,17): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
|
|
+consumes.ts(3,12): error TS9013: Expression type can't be inferred with --isolatedDeclarations.
|
|
|
|
|
|
==== consumes.ts (1 errors) ====
|
|
import {A} from "./defines.js";
|
|
export function create() {
|
|
- ~~~~~~
|
|
-!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
|
|
-!!! related TS9031 consumes.ts:2:17: Add a return type to the function declaration.
|
|
return new A();
|
|
+ ~~~~~~~
|
|
+!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
|
|
+!!! related TS9031 consumes.ts:2:17: Add a return type to the function declaration.
|
|
+!!! related TS9035 consumes.ts:3:12: Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit.
|
|
}
|
|
//// [exposes.d.ts] ////
|
|
export declare const value: any;
|