Optional
If provided, this check will only be executed if the function returns true. Defaults to payload => z.util.isAborted(payload).
true
payload => z.util.isAborted(payload)
This parameter is deprecated. Use error instead.
error
If provided, this check will only be executed if the function returns
true
. Defaults topayload => z.util.isAborted(payload)
.