@liveblocks/client
Advanced tools
Comparing version 0.15.8 to 0.15.9
@@ -235,24 +235,17 @@ /** | ||
}; | ||
/** | ||
* Represents all the other users connected in the room. Treated as immutable. | ||
*/ | ||
interface Others<TPresence extends Presence = Presence> { | ||
declare type ReadonlyArrayWithLegacyMethods<T> = readonly T[] & { | ||
/** | ||
* Number of other users in the room. | ||
* @deprecated Prefer the normal .length property on arrays. | ||
*/ | ||
readonly count: number; | ||
/** | ||
* Returns a new Iterator object that contains the users. | ||
* @deprecated Calling .toArray() is no longer needed | ||
*/ | ||
[Symbol.iterator](): IterableIterator<User<TPresence>>; | ||
/** | ||
* Returns the array of connected users in room. | ||
*/ | ||
toArray(): User<TPresence>[]; | ||
/** | ||
* This function let you map over the connected users in the room. | ||
*/ | ||
map<U>(callback: (user: User<TPresence>) => U): U[]; | ||
} | ||
toArray(): T[]; | ||
}; | ||
/** | ||
* A read-only array containing all other users connected to the room. | ||
*/ | ||
declare type Others<P extends Presence = Presence> = ReadonlyArrayWithLegacyMethods<User<P>>; | ||
/** | ||
* Represents a user connected in a room. Treated as immutable. | ||
@@ -259,0 +252,0 @@ */ |
{ | ||
"name": "@liveblocks/client", | ||
"version": "0.15.8", | ||
"version": "0.15.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
354978
10777