@liveblocks/core
Advanced tools
Comparing version 1.0.2-test5 to 1.0.2
@@ -464,24 +464,2 @@ /** | ||
/** | ||
* This type is used by clients to define the metadata for a user. | ||
*/ | ||
declare type BaseUserMeta = { | ||
/** | ||
* The id of the user that has been set in the authentication endpoint. | ||
* Useful to get additional information about the connected user. | ||
*/ | ||
id?: string; | ||
/** | ||
* Additional user information that has been set in the authentication endpoint. | ||
*/ | ||
info?: Json; | ||
}; | ||
declare type Callback<T> = (event: T) => void; | ||
declare type UnsubscribeCallback = () => void; | ||
declare type Observable<T> = { | ||
subscribe(callback: Callback<T>): UnsubscribeCallback; | ||
subscribeOnce(callback: Callback<T>): UnsubscribeCallback; | ||
}; | ||
/** | ||
* This helper type is effectively a no-op, but will force TypeScript to | ||
@@ -512,2 +490,24 @@ * "evaluate" any named helper types in its definition. This can sometimes make | ||
/** | ||
* This type is used by clients to define the metadata for a user. | ||
*/ | ||
declare type BaseUserMeta = { | ||
/** | ||
* The id of the user that has been set in the authentication endpoint. | ||
* Useful to get additional information about the connected user. | ||
*/ | ||
id?: string; | ||
/** | ||
* Additional user information that has been set in the authentication endpoint. | ||
*/ | ||
info?: Json; | ||
}; | ||
declare type Callback<T> = (event: T) => void; | ||
declare type UnsubscribeCallback = () => void; | ||
declare type Observable<T> = { | ||
subscribe(callback: Callback<T>): UnsubscribeCallback; | ||
subscribeOnce(callback: Callback<T>): UnsubscribeCallback; | ||
}; | ||
declare type AppOnlyAuthToken = { | ||
@@ -1080,2 +1080,13 @@ appId: string; | ||
declare type EnterOptions<TPresence extends JsonObject, TStorage extends LsonObject> = Resolve<RoomInitializers<TPresence, TStorage> & { | ||
/** | ||
* Only necessary when youโre using Liveblocks with React v17 or lower. | ||
* | ||
* If so, pass in a reference to `ReactDOM.unstable_batchedUpdates` here. | ||
* This will allow Liveblocks to circumvent the so-called "zombie child | ||
* problem". To learn more, see | ||
* https://liveblocks.io/docs/guides/troubleshooting#stale-props-zombie-child | ||
*/ | ||
unstable_batchedUpdates?: (cb: () => void) => void; | ||
}>; | ||
declare type Client = { | ||
@@ -1093,3 +1104,3 @@ /** | ||
*/ | ||
enter<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never>(roomId: string, options: RoomInitializers<TPresence, TStorage>): Room<TPresence, TStorage, TUserMeta, TRoomEvent>; | ||
enter<TPresence extends JsonObject, TStorage extends LsonObject = LsonObject, TUserMeta extends BaseUserMeta = BaseUserMeta, TRoomEvent extends Json = never>(roomId: string, options: EnterOptions<TPresence, TStorage>): Room<TPresence, TStorage, TUserMeta, TRoomEvent>; | ||
/** | ||
@@ -1096,0 +1107,0 @@ * Leaves a room. |
{ | ||
"name": "@liveblocks/core", | ||
"version": "1.0.2-test5", | ||
"version": "1.0.2", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
205593
6361
1