Support route model binding and interfaces #371
Annotations
2 errors
|
|
|
tests/js/route.test-d.ts#L50
TypeCheckError: No overload matches this call.
Overload 1 of 4, '(name undefined, params undefined, absolute? boolean, config? Config) Router', gave the following error.
Argument of type '"posts.comments.show"' is not assignable to parameter of type 'undefined'.
Overload 2 of 4, '(name "posts.comments.show", params? RouteParams<"posts.comments.show">, absolute? boolean, config? Config) string', gave the following error.
Type 'Test' is not assignable to type 'RawParameterValue | ({ uuid RawParameterValue; } & Record<string | number | symbol, unknown>)'.
Type 'Test' is not assignable to type '{ uuid RawParameterValue; } & Record<string | number | symbol, unknown>'.
Type 'Test' is not assignable to type 'Record<string | number | symbol, unknown>'.
Index signature for type 'string' is missing in type 'Test'.
Overload 3 of 4, '(name "posts.comments.show", params? ParameterValue, absolute? boolean, config? Config) string', gave the following error.
Argument of type '{ comment Test; post string; }' is not assignable to parameter of type 'ParameterValue'.
Type '{ comment Test; post string; }' is not assignable to type 'DefaultRoutable'.
Property 'id' is missing in type '{ comment Test; post string; }' but required in type '{ id RawParameterValue; }'.
❯ tests/js/route.test-d.ts:50:12
|
The logs for this run have expired and are no longer available.
Loading