UNPKG

@kurrent/kurrentdb-client

Version:
13 lines (12 loc) 464 B
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>;