Signature
tsSignature
export type RaceError<B extends BehaviorRecord> = { [K in keyof B]: { key: K; error: BehaviorError<B[K]> | RuntimeError; };}[keyof B];Imports
tsImport
import { RaceError } from "@/lib/flow/core/record";import { RaceError } from "@/lib/flow";Type Parameters
BBehavior record to inspect.
Related Symbols
BehaviorError
Extracts the expected domain error type from a behavior.
type
BehaviorRecord
Object map of named behaviors for `all`, `allSettled`, and `race`.
type
RuntimeError
Runtime-level failure union added around every behavior's domain error type.
type
Source
tsflow/core/record.ts:100-105
export type RaceError<B extends BehaviorRecord> = { [K in keyof B]: { key: K; error: BehaviorError<B[K]> | RuntimeError; };}[keyof B];