@loro-dev/flock 4.4.4 → 4.4.5

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/src/moonbit.d.ts CHANGED
@@ -34,9 +34,18 @@ export type Float = number;
34
34
 
35
35
  export type Double = number;
36
36
 
37
- export type Int64 = { [__brand]: 568910272 };
37
+ /**
38
+ * Backed by `bigint`, but not equal to the backing value:
39
+ * runtime operations interpret it with signed 64-bit wraparound semantics.
40
+ * Use `BigInt.asIntN(64, x)` to get the numerically equivalent `bigint`.
41
+ */
42
+ export type Int64 = bigint & { [__brand]: "Int64" };
38
43
 
39
- export type UInt64 = { [__brand]: 689305396 };
44
+ /**
45
+ * Backed directly by `bigint`.
46
+ * Valid `UInt64` values are in the unsigned 64-bit range `[0, 2^64)`.
47
+ */
48
+ export type UInt64 = bigint & { [__brand]: "UInt64" };
40
49
 
41
50
  export type String = string;
42
51
 
@@ -44,14 +53,10 @@ export type Bytes = Uint8Array;
44
53
 
45
54
  export type FixedArray<T> = T[];
46
55
 
47
- export type UnboxedOption<T> =
48
- | /* Some */ T
49
- | /* None */ undefined;
56
+ export type UnboxedOption<T> = /* Some */ T | /* None */ undefined;
50
57
 
51
- export type UnboxedOptionAsInt<T> =
52
- | /* Some */ T
53
- | /* None */ -1;
58
+ export type UnboxedOptionAsInt<T> = /* Some */ T | /* None */ -1;
54
59
 
55
60
  export type Result<T, E> =
56
- | /* Ok */ { $tag: 1, _0: T }
57
- | /* Err */ { $tag: 0, _0: E };
61
+ | /* Ok */ { $tag: 1; _0: T }
62
+ | /* Err */ { $tag: 0; _0: E };