@kurrent/kurrentdb-client
Version:
KurrentDB gRPC NodeJS Client SDK
19 lines (18 loc) • 613 B
TypeScript
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>;
}
}