@liveblocks/zustand 0.15.10 → 0.15.11-test.1

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/lib/index.d.ts +2 -2
  2. package/package.json +6 -3
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { StateCreator, SetState, GetState, StoreApi } from "zustand";
2
- import { Client, User, Room } from "@liveblocks/client";
2
+ import { Client, Presence, Room, User } from "@liveblocks/client";
3
3
  export declare type LiveblocksState<TState, TPresence = any> = TState & {
4
4
  /**
5
5
  * Liveblocks extra state attached by the middleware
@@ -51,5 +51,5 @@ declare type Options<T> = {
51
51
  */
52
52
  presenceMapping?: Mapping<T>;
53
53
  };
54
- export declare function middleware<T extends Object, TPresence extends Object = any>(config: StateCreator<T, SetState<T>, GetState<LiveblocksState<T>>, StoreApi<T>>, options: Options<T>): StateCreator<LiveblocksState<T, TPresence>, SetState<LiveblocksState<T, TPresence>>, GetState<LiveblocksState<T, TPresence>>, StoreApi<LiveblocksState<T, TPresence>>>;
54
+ export declare function middleware<T extends Record<string, unknown>, TPresence extends Record<string, unknown> = Presence>(config: StateCreator<T, SetState<T>, GetState<LiveblocksState<T>>, StoreApi<T>>, options: Options<T>): StateCreator<LiveblocksState<T, TPresence>, SetState<LiveblocksState<T, TPresence>>, GetState<LiveblocksState<T, TPresence>>, StoreApi<LiveblocksState<T, TPresence>>>;
55
55
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/zustand",
3
- "version": "0.15.10",
3
+ "version": "0.15.11-test.1",
4
4
  "sideEffects": false,
5
5
  "description": "",
6
6
  "main": "./lib/index.js",
@@ -36,7 +36,7 @@
36
36
  "directory": "packages/liveblocks-zustand"
37
37
  },
38
38
  "peerDependencies": {
39
- "@liveblocks/client": "0.15.10",
39
+ "@liveblocks/client": "0.15.11-test.1",
40
40
  "zustand": "^3"
41
41
  },
42
42
  "devDependencies": {
@@ -51,7 +51,10 @@
51
51
  "@testing-library/react": "^12.1.2",
52
52
  "@testing-library/react-hooks": "^7.0.2",
53
53
  "@types/jest": "^27.4.0",
54
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
55
+ "@typescript-eslint/parser": "^5.18.0",
54
56
  "esbuild": "0.14.11",
57
+ "eslint": "^8.12.0",
55
58
  "jest": "^27.4.7",
56
59
  "msw": "^0.36.4",
57
60
  "rollup": "^2.64.0",
@@ -59,4 +62,4 @@
59
62
  "whatwg-fetch": "^3.6.2",
60
63
  "zustand": "^3.6.9"
61
64
  }
62
- }
65
+ }