Обзор
typeCore Record

RaceError

Keyed failure value returned by `race`.

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

B

Behavior record to inspect.

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];