@kurrent/kurrentdb-client
Version:
KurrentDB gRPC NodeJS Client SDK
9 lines (8 loc) • 350 B
TypeScript
import type { EventData, JSONEventType } from "../types";
export type JSONEventOptions<E extends JSONEventType> = {
/**
* The id to this event. By default, the id will be generated.
*/
id?: string;
} & E;
export declare const jsonEvent: <E extends JSONEventType>({ type, data, metadata, id, }: JSONEventOptions<E>) => EventData<E>;