@omegup/msync 0.1.66 → 0.1.67
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.esm.js.map +1 -1
- package/index.js.map +1 -1
- package/lib/expression/val.d.ts +2 -2
- package/package.json +1 -1
package/lib/expression/val.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const current: Expr<Timestamp, unknown>;
|
|
|
7
7
|
export declare const $let: <T, D, C, V extends object>(vars: ExprsExact<V, D, C>, inExpr: Expr<T, D, C & V>) => Expr<T, D, C>;
|
|
8
8
|
export declare const nil: Expr<null, unknown>;
|
|
9
9
|
export declare const $getField: {
|
|
10
|
-
<T, K extends StrKey<T>, D, C = unknown>(expr: Expr<T, D, C>, field: K): Expr<T[K], D, C>;
|
|
11
|
-
<T, K extends StrKey<T>, D, C = unknown>(expr: Expr<T | N, D, C>, field: K | Expr<
|
|
10
|
+
<T, K extends StrKey<T>, D, C = unknown>(expr: Expr<T, D, C>, field: K | Expr<K, D, C>): Expr<T[K], D, C>;
|
|
11
|
+
<T, K extends StrKey<T>, D, C = unknown>(expr: Expr<T | N, D, C>, field: K | Expr<K, D, C>): Expr<T[K] | null, D, C>;
|
|
12
12
|
};
|
|
13
13
|
export type AddO<T> = T extends notObj ? T : T extends Array<infer U> ? Arr<AddO<U>> : O<{
|
|
14
14
|
[K in keyof T]: AddO<T[K]>;
|