@liveblocks/client 0.16.10 → 0.16.11

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 +13 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -28,4 +28,16 @@ export { B as BroadcastOptions, a as Client, H as History, J as Json, d as JsonO
28
28
  */
29
29
  declare function createClient(options: ClientOptions): Client;
30
30
 
31
- export { createClient };
31
+ /**
32
+ * Helper type to help users adopt to Lson types from interface definitions.
33
+ * You should only use this to wrap interfaces you don't control. For more
34
+ * information, see
35
+ * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
36
+ */
37
+ declare type EnsureJson<T> = [
38
+ unknown
39
+ ] extends [T] ? T : T extends (...args: any[]) => any ? T : {
40
+ [K in keyof T]: EnsureJson<T[K]>;
41
+ };
42
+
43
+ export { EnsureJson, createClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "0.16.10",
3
+ "version": "0.16.11",
4
4
  "description": "A client that lets you interact with Liveblocks servers.",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",