@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.
- package/index.d.ts +13 -1
- 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
|
-
|
|
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 };
|