@kurrent/kurrentdb-client
Version:
KurrentDB gRPC NodeJS Client SDK
21 lines (20 loc) • 695 B
TypeScript
import type { BaseOptions } from "../types";
export interface UpdateProjectionOptions extends BaseOptions {
/**
* Enables emitting events from the projection.
* Passing `undefined` will leave emitEnabled at its current value.
* @defaultValue undefined
*/
emitEnabled?: boolean;
}
declare module "../Client" {
interface Client {
/**
* Updates a projection.
* @param projectionName - The name of the projection.
* @param query - The query to run.
* @param options - Projection options.
*/
updateProjection(projectionName: string, query: string, options?: UpdateProjectionOptions): Promise<void>;
}
}