Genel bakış
typeCore Record

SettledRecord

Maps each behavior key to the full result returned by that child.

Signature

tsSignature
export type SettledRecord<B extends BehaviorRecord> = {
[K in keyof B]: Result<BehaviorOutput<B[K]>, BehaviorError<B[K]> | RuntimeError>;
};

Imports

tsImport
import { SettledRecord } from "@/lib/flow/core/record";
import { SettledRecord } from "@/lib/flow";

Type Parameters

B

Behavior record to inspect.

Details

`allSettled` uses this type to preserve successes, domain failures, and runtime failures for

every child behavior.

allSettled

Runs keyed behaviors and collects every child result.

function
Result

Explicit success-or-failure outcome used throughout Flow.

type
RuntimeError

Runtime-level failure union added around every behavior's domain error type.

type

Source

tsflow/core/record.ts:79-81
export type SettledRecord<B extends BehaviorRecord> = {
[K in keyof B]: Result<BehaviorOutput<B[K]>, BehaviorError<B[K]> | RuntimeError>;
};