API reference › @evolu/common › Task › TaskWithError
type TaskWithError<TTask> = TTask & [InferTaskErr<TTask>] extends [never]
? never
: unknown;
Defined in: packages/common/src/Task.ts:1046
A Task whose error type is not never.
Used by Run.orThrow to accept only Tasks that can return a declared Err. Tasks without declared Result errors should use Run.ok instead.