TaskState
Type. Generic Task state snapshot.
Table of contents
Category
Type
Type import
tsimport type { TaskState } from "valyrian.js/tasks";Public signature
tstype TaskState<TResult> = { status: TaskStatus; running: boolean; result: TResult | null; error: unknown; };Type usage
TaskState carries the generic result together with status, running and error fields.