UNPKG

@elimeleth/vct-flow

Version:

Crea un archivo app.ts, coloca el codigo de abajo alli y luego puedes correrlo con `npx tsx src/app.ts`

19 lines (18 loc) 898 B
import { Context, GlobalCheckpoint, ICheckpointer } from "../types"; export declare class Checkpointer implements ICheckpointer { private checkpoints; private datastore; constructor(); loadCheckpointFromFile(filePath: string): void; loadAllCheckpointsOnInit(): Promise<void>; isCompleted(ctx: Context): boolean; getCheckpointStatus(threadId: string): import("../types").StatusChck; getCheckpointStatusPending(): GlobalCheckpoint[]; getActualThreadID(thread_id: string): GlobalCheckpoint; resetCheckpoint(threadId: string): void; saveCheckpoint(args: GlobalCheckpoint): Promise<void>; loadCheckpointFromDatastore(thread_id: string): Promise<GlobalCheckpoint[] | null>; deleteCheckpoint(thread_id: string): Promise<void>; updateCheckpointStatus(args: GlobalCheckpoint, force?: boolean): Promise<void>; private writeCheckpointToDatastore; }