@liveblocks/client 0.16.15 → 0.17.0-test1

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 (10) hide show
  1. package/index.d.ts +26 -7
  2. package/index.js +1230 -830
  3. package/index.mjs +1030 -782
  4. package/internal.d.ts +271 -251
  5. package/internal.js +314 -168
  6. package/internal.mjs +265 -130
  7. package/package.json +15 -10
  8. package/shared.d.ts +973 -628
  9. package/shared.js +2568 -1331
  10. package/shared.mjs +1989 -1210
package/index.d.ts CHANGED
@@ -1,5 +1,22 @@
1
- import { C as ClientOptions, a as Client } from './shared';
2
- export { B as BroadcastOptions, a as Client, H as History, J as Json, d as JsonObject, c as LiveList, b as LiveMap, L as LiveObject, e as Lson, f as LsonObject, O as Others, P as Presence, R as Room, S as StorageUpdate, U as User } from './shared';
1
+ import { C as ClientOptions, a as Client } from "./shared.js";
2
+ export {
3
+ B as BroadcastOptions,
4
+ a as Client,
5
+ H as History,
6
+ J as Json,
7
+ d as JsonObject,
8
+ L as LiveList,
9
+ b as LiveMap,
10
+ c as LiveObject,
11
+ e as LiveStructure,
12
+ f as Lson,
13
+ g as LsonObject,
14
+ O as Others,
15
+ P as Presence,
16
+ R as Room,
17
+ S as StorageUpdate,
18
+ U as User,
19
+ } from "./shared.js";
3
20
 
4
21
  /**
5
22
  * Create a client that will be responsible to communicate with liveblocks servers.
@@ -34,10 +51,12 @@ declare function createClient(options: ClientOptions): Client;
34
51
  * information, see
35
52
  * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
36
53
  */
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
- };
54
+ declare type EnsureJson<T> = [unknown] extends [T]
55
+ ? T
56
+ : T extends (...args: unknown[]) => unknown
57
+ ? T
58
+ : {
59
+ [K in keyof T]: EnsureJson<T[K]>;
60
+ };
42
61
 
43
62
  export { EnsureJson, createClient };