mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
1.0 KiB
Diff
19 lines
1.0 KiB
Diff
--- old.isolatedDeclarationsAddUndefined.errors.txt
|
|
+++ new.isolatedDeclarationsAddUndefined.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-file2.ts(4,38): error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
|
|
+file2.ts(4,27): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.
|
|
|
|
|
|
==== file1.ts (0 errors) ====
|
|
@@= skipped -14, +14 lines =@@
|
|
}
|
|
type T = number
|
|
export function foo2(p = (ip = 10 as T, v: number): void => {}): void{}
|
|
- ~
|
|
-!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
|
|
+ ~~~~~~~~~~~~
|
|
+!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.
|
|
!!! related TS9028 file2.ts:4:27: Add a type annotation to the parameter ip.
|
|
export class Bar2 {
|
|
readonly r = 1;
|