mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
1.5 KiB
Diff
18 lines
1.5 KiB
Diff
--- old.inferenceFromIncompleteSource.errors.txt
|
|
+++ new.inferenceFromIncompleteSource.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-inferenceFromIncompleteSource.ts(11,11): error TS2345: Argument of type '{ items: { name: string; }[]; itemKey: "name"; }' is not assignable to parameter of type 'ListProps<{ name: string; }, "name">'.
|
|
- Property 'prop' is missing in type '{ items: { name: string; }[]; itemKey: "name"; }' but required in type 'ListProps<{ name: string; }, "name">'.
|
|
+inferenceFromIncompleteSource.ts(11,11): error TS2741: Property 'prop' is missing in type '{ items: { name: string; }[]; itemKey: "name"; }' but required in type 'ListProps<{ name: string; }, "name">'.
|
|
|
|
|
|
==== inferenceFromIncompleteSource.ts (1 errors) ====
|
|
@@= skipped -14, +13 lines =@@
|
|
|
|
Component({items: [{name:' string'}], itemKey: 'name' });
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
-!!! error TS2345: Argument of type '{ items: { name: string; }[]; itemKey: "name"; }' is not assignable to parameter of type 'ListProps<{ name: string; }, "name">'.
|
|
-!!! error TS2345: Property 'prop' is missing in type '{ items: { name: string; }[]; itemKey: "name"; }' but required in type 'ListProps<{ name: string; }, "name">'.
|
|
+!!! error TS2741: Property 'prop' is missing in type '{ items: { name: string; }[]; itemKey: "name"; }' but required in type 'ListProps<{ name: string; }, "name">'.
|
|
!!! related TS2728 inferenceFromIncompleteSource.ts:6:3: 'prop' is declared here.
|
|
|