@threadplane/coreFunctionv0.0.0

completeDelivery

Unpublished development API. This package is under development and is not available as a published release.

Creates a frozen terminal delivery marker with the supplied generation and outcome.

import { completeDelivery } from '@threadplane/core';

Declaration · overload 1

export declare function completeDelivery<const TOutcome extends CompleteOutcome>(generation: string, outcome: TOutcome): Readonly<{
    readonly generation: string;
    readonly phase: "complete";
    readonly outcome: CompleteOutcome;
}>;

Type parameters

Parameters

generation · required
string
outcome · required
TOutcome

Returns

Readonly<{ readonly generation: string; readonly phase: "complete"; readonly outcome: CompleteOutcome; }>