@kurrent/kurrentdb-client
Version:
KurrentDB gRPC NodeJS Client SDK
13 lines (12 loc) • 464 B
TypeScript
import type { BinaryEventType, EventData } from "../types";
export type BinaryEventOptions<E extends BinaryEventType> = E & {
/**
* The id to this event. By default, the id will be generated.
*/
id?: string;
/**
* The binary data of the event.
*/
data: Uint8Array | Buffer;
};
export declare const binaryEvent: <E extends BinaryEventType = BinaryEventType>({ type, data, metadata, id, }: BinaryEventOptions<E>) => EventData<E>;