File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ export type RealtimeEventType = "create" | "update" | "delete";
66/**
77 * Payload received when a realtime event occurs.
88 */
9- export interface RealtimeEvent < T = Record < string , any > > {
9+ export interface RealtimeEvent {
1010 /** The type of change that occurred */
1111 type : RealtimeEventType ;
12- /** The entity data (new/updated for create/update, previous for delete) */
13- data : T ;
12+ /** The entity data */
13+ data : any ;
1414 /** The unique identifier of the affected entity */
1515 id : string ;
1616 /** ISO 8601 timestamp of when the event occurred */
@@ -20,9 +20,7 @@ export interface RealtimeEvent<T = Record<string, any>> {
2020/**
2121 * Callback function invoked when a realtime event occurs.
2222 */
23- export type RealtimeCallback < T = Record < string , any > > = (
24- event : RealtimeEvent < T >
25- ) => void ;
23+ export type RealtimeCallback = ( event : RealtimeEvent ) => void ;
2624
2725/**
2826 * Function returned from subscribe, call it to unsubscribe.
You can’t perform that action at this time.
0 commit comments