@base44-preview/sdk 0.8.18-pr.70.4e2bede → 0.8.18-pr.70.e8902be
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Event types for realtime entity updates.
|
|
3
|
-
* @internal
|
|
4
3
|
*/
|
|
5
4
|
export type RealtimeEventType = "create" | "update" | "delete";
|
|
6
5
|
/**
|
|
7
6
|
* Payload received when a realtime event occurs.
|
|
8
|
-
* @internal
|
|
9
7
|
*/
|
|
10
8
|
export interface RealtimeEvent {
|
|
11
9
|
/** The type of change that occurred */
|
|
@@ -19,7 +17,6 @@ export interface RealtimeEvent {
|
|
|
19
17
|
}
|
|
20
18
|
/**
|
|
21
19
|
* Callback function invoked when a realtime event occurs.
|
|
22
|
-
* @internal
|
|
23
20
|
*/
|
|
24
21
|
export type RealtimeCallback = (event: RealtimeEvent) => void;
|
|
25
22
|
/**
|
|
@@ -290,7 +287,6 @@ export interface EntityHandler {
|
|
|
290
287
|
* // Later, clean up the subscription
|
|
291
288
|
* unsubscribe();
|
|
292
289
|
* ```
|
|
293
|
-
* @internal
|
|
294
290
|
*/
|
|
295
291
|
subscribe(callback: RealtimeCallback): () => void;
|
|
296
292
|
}
|