UNPKG

@kurrent/kurrentdb-client

Version:
19 lines (18 loc) 613 B
import type { BaseOptions, DeleteResult, StreamState } from "../types"; export interface TombstoneStreamOptions extends BaseOptions { /** * Asks the server to check the stream is at specific revision before deleting. * @defaultValue ANY */ expectedRevision?: StreamState; } declare module "../Client" { interface Client { /** * Hard-deletes a stream. * @param streamName - A stream name. * @param options - Tombstoneing options. */ tombstoneStream(streamName: string, options?: TombstoneStreamOptions): Promise<DeleteResult>; } }