You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An operation doesn't explicitly specify its return type (i.e., it relies on type inference)
Its return type is a Prisma entity.
More precisely, at some point of our pipeline, the type inferred for the operations API (rpc for the client, wrappers for the server) no longer matches the type inferred at the definition site.
When you fix this, make sure to update the type tests in waspc/todoApp.
Example
I'll explain what's going on on the taskToTaskUnspecified action. You can find it in waspc/todoApp (at the time of writing).
The two types look similar, but they differ in the last type argument.: the original type doesn't specify the last type argument, while the "public" type specifies never.
The text was updated successfully, but these errors were encountered:
Something weird happens when:
More precisely, at some point of our pipeline, the type inferred for the operations API (rpc for the client, wrappers for the server) no longer matches the type inferred at the definition site.
When you fix this, make sure to update the type tests in
waspc/todoApp
.Example
I'll explain what's going on on the
taskToTaskUnspecified
action. You can find it inwaspc/todoApp
(at the time of writing).Consider the action defined as:
This is the return type inferred at the definition site:
And this is the return type inferred when I import it from
wasp/server/operations
orwasp/client/operations
:The two types look similar, but they differ in the last type argument.: the original type doesn't specify the last type argument, while the "public" type specifies
never
.The text was updated successfully, but these errors were encountered: