Обзор
typeCore Runtime

BehaviorError

Extracts the expected domain error type from a behavior.

Signature

tsSignature
export type BehaviorError<T> =
T extends Behavior<infer _I, infer _O, infer E, infer _C> ? E : never;

Imports

tsImport
import { BehaviorError } from "@/lib/flow/core/runtime";
import { BehaviorError } from "@/lib/flow";

Type Parameters

T

Behavior type to inspect.

Behavior

Executable Flow workflow unit.

type

Source

tsflow/core/runtime.ts:81-82
export type BehaviorError<T> =
T extends Behavior<infer _I, infer _O, infer E, infer _C> ? E : never;