@base44-preview/sdk 0.8.18-pr.70.314d605 → 0.8.18-pr.70.cc6a283
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,12 +17,10 @@ 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
|
/**
|
|
26
23
|
* Function returned from subscribe, call it to unsubscribe.
|
|
27
|
-
* @internal
|
|
28
24
|
*/
|
|
29
25
|
export type Subscription = () => void;
|
|
30
26
|
/**
|
|
@@ -295,7 +291,6 @@ export interface EntityHandler {
|
|
|
295
291
|
* // Later, clean up the subscription
|
|
296
292
|
* unsubscribe();
|
|
297
293
|
* ```
|
|
298
|
-
* @internal
|
|
299
294
|
*/
|
|
300
295
|
subscribe(callback: RealtimeCallback): () => void;
|
|
301
296
|
}
|