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
I get the following error when trying to use applySchema with a plain function:
constincrement=(value: number)=>value+1constincrementWithSchema=applySchema(z.number())(increment)// Argument of type '(value: number) => number' is not assignable to parameter of type '((input: number, context: unknown) => Promise<Result<unknown>>) & { kind: "composable"; }'.// Type '(value: number) => number' is not assignable to type '(input: number, context: unknown) => Promise<Result<unknown>>'.// Type 'number' is not assignable to type 'Promise<Result<unknown>>'.ts(2345)
If I wrap it with composable, everything works fine.
I get the following error when trying to use
applySchema
with a plain function:If I wrap it with
composable
, everything works fine.The text was updated successfully, but these errors were encountered: