@liveblocks/redux 0.17.0-test1 → 0.17.0

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.
Files changed (2) hide show
  1. package/index.d.ts +7 -3
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,10 +1,14 @@
1
- import { JsonObject, User, Client } from "@liveblocks/client";
1
+ import { JsonObject, BaseUserMeta, User, Client } from "@liveblocks/client";
2
2
  import { StoreEnhancer } from "redux";
3
3
 
4
4
  declare type Mapping<T> = {
5
5
  [K in keyof T]?: boolean;
6
6
  };
7
- declare type LiveblocksState<TState, TPresence extends JsonObject> = TState & {
7
+ declare type LiveblocksState<
8
+ TState,
9
+ TPresence extends JsonObject,
10
+ TUserMeta extends BaseUserMeta
11
+ > = TState & {
8
12
  /**
9
13
  * Liveblocks extra state attached by the enhancer
10
14
  */
@@ -12,7 +16,7 @@ declare type LiveblocksState<TState, TPresence extends JsonObject> = TState & {
12
16
  /**
13
17
  * Other users in the room. Empty no room is currently synced
14
18
  */
15
- readonly others: Array<User<TPresence>>;
19
+ readonly others: Array<User<TPresence, TUserMeta>>;
16
20
  /**
17
21
  * Whether or not the room storage is currently loading
18
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/redux",
3
- "version": "0.17.0-test1",
3
+ "version": "0.17.0",
4
4
  "description": "A store enhancer to integrate Liveblocks into Redux stores.",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -31,7 +31,7 @@
31
31
  "directory": "packages/liveblocks-redux"
32
32
  },
33
33
  "peerDependencies": {
34
- "@liveblocks/client": "0.17.0-test1",
34
+ "@liveblocks/client": "0.17.0",
35
35
  "redux": "^4"
36
36
  },
37
37
  "devDependencies": {