• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Task
    • Type
    • Conventions
    • Testing
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Relay
    • Migrations
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

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.

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server