mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
1.8 KiB
Diff
22 lines
1.8 KiB
Diff
--- old.destructuringParameterDeclaration2.errors.txt
|
|
+++ new.destructuringParameterDeclaration2.errors.txt
|
|
@@= skipped -16, +16 lines =@@
|
|
destructuringParameterDeclaration2.ts(32,14): error TS7031: Binding element 'a' implicitly has an 'any' type.
|
|
destructuringParameterDeclaration2.ts(32,17): error TS7031: Binding element 'b' implicitly has an 'any' type.
|
|
destructuringParameterDeclaration2.ts(34,6): error TS2322: Type 'number' is not assignable to type '{ x: any; y: { j: any; }; }'.
|
|
-destructuringParameterDeclaration2.ts(35,4): error TS2345: Argument of type '{}' is not assignable to parameter of type '{ z: number; }'.
|
|
- Property 'z' is missing in type '{}' but required in type '{ z: number; }'.
|
|
+destructuringParameterDeclaration2.ts(35,4): error TS2741: Property 'z' is missing in type '{}' but required in type '{ z: number; }'.
|
|
destructuringParameterDeclaration2.ts(36,6): error TS2322: Type 'boolean' is not assignable to type 'number'.
|
|
destructuringParameterDeclaration2.ts(37,6): error TS2322: Type 'boolean' is not assignable to type 'number'.
|
|
destructuringParameterDeclaration2.ts(38,6): error TS2322: Type 'boolean' is not assignable to type 'string | number'.
|
|
@@= skipped -124, +123 lines =@@
|
|
!!! error TS2322: Type 'number' is not assignable to type '{ x: any; y: { j: any; }; }'.
|
|
c1({}); // Error, implied type is {z:number}?
|
|
~~
|
|
-!!! error TS2345: Argument of type '{}' is not assignable to parameter of type '{ z: number; }'.
|
|
-!!! error TS2345: Property 'z' is missing in type '{}' but required in type '{ z: number; }'.
|
|
+!!! error TS2741: Property 'z' is missing in type '{}' but required in type '{ z: number; }'.
|
|
!!! related TS2728 destructuringParameterDeclaration2.ts:27:21: 'z' is declared here.
|
|
c1({ z: true }); // Error, implied type is {z:number}?
|
|
~
|