@liveblocks/core
Advanced tools
Comparing version 0.19.3-beta3 to 0.19.3-beta4
@@ -662,2 +662,3 @@ /** | ||
declare type ConnectionState = Connection["state"]; | ||
declare type StorageStatus = "not-loaded" | "loading" | "synchronizing" | "synchronized"; | ||
interface History { | ||
@@ -740,5 +741,2 @@ /** | ||
}; | ||
declare type PendingHasModificationsEvent = { | ||
hasPendingStorageModifications: boolean; | ||
}; | ||
declare type BroadcastOptions = { | ||
@@ -863,3 +861,3 @@ /** | ||
/** | ||
* Subscribe to pending storage modifications updates. | ||
* Subscribe to storage status changes. | ||
* | ||
@@ -869,7 +867,9 @@ * @returns Unsubscribe function. | ||
* @example | ||
* room.subscribe("pending-storage-modifications", ({ hasPendingStorageModifications }) => { | ||
* // Do something | ||
* room.subscribe("storage-status", (status) => { | ||
* switch(status) { | ||
* case | ||
* } | ||
* }); | ||
*/ | ||
(type: "pending-storage-modifications", listener: Callback<PendingHasModificationsEvent>): () => void; | ||
(type: "storage-status", listener: Callback<StorageStatus>): () => void; | ||
}; | ||
@@ -989,5 +989,5 @@ /** | ||
/** | ||
* Whether or not the room has storage modifications that have not been acknowledged by the server. | ||
* Get the storage status. | ||
*/ | ||
hasPendingStorageModifications(): boolean; | ||
getStorageStatus(): StorageStatus; | ||
/** | ||
@@ -994,0 +994,0 @@ * Close room connection and try to reconnect |
{ | ||
"name": "@liveblocks/core", | ||
"version": "0.19.3-beta3", | ||
"version": "0.19.3-beta4", | ||
"description": "Shared code and foundational internals for Liveblocks", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5784
187380