completeDelivery

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

import { completeDelivery } from '@threadplane/angular/chat';

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