Signature
tsSignature
export function raceSuccess<K extends PropertyKey, V>( key: K, value: V,): { key: K; value: V;};Imports
tsImport
import { raceSuccess } from "@/lib/flow/core/record";import { raceSuccess } from "@/lib/flow";Type Parameters
KWinning key type.
VWinning value type.
Parameters
keyK
Behavior key that settled successfully.
valueV
Successful child value.
Returns
Keyed success payload.
Return type
{
key: K;
value: V;
}Source
tsflow/core/record.ts:189-197
export function raceSuccess<K extends PropertyKey, V>( key: K, value: V,): { key: K; value: V;} { return { key, value };}