@omegup/msync 0.1.68 → 0.1.69
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 +2 -1
- package/index.esm.js.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/lib/expression/array.d.ts +1 -0
- package/package.json +1 -1
- package/types/json.d.ts +1 -1
|
@@ -24,6 +24,7 @@ export declare const last: <T, D, C>(expr: Expr<Arr<T>, D, C>) => Expr<T | null,
|
|
|
24
24
|
export type NullToOBJ<N extends null> = N extends null ? O : N;
|
|
25
25
|
export declare const mergeObjects: <T1, T2, D, C = unknown, N extends null = never>(...exprs: readonly [Expr<T1 | N, D, C>, ...[...Expr<T1 | T2 | N, D, C>[], Expr<T2, D, C>]]) => Expr<(T1 | NullToOBJ<N>) & T2, D, C>;
|
|
26
26
|
export declare const $objectToArray: <T extends O, D, C>(expr: Expr<T, D, C>) => Expr<Arr<KVEntry<T>>, D, C>;
|
|
27
|
+
export declare const $arrayToObject: <T extends O, D, C>(expr: Expr<Arr<KVEntry<T>>, D, C>) => Expr<T, D, C>;
|
|
27
28
|
export declare const anyElementTrue: <D, C = unknown>(expr: Expr<Arr<boolean>, D, C>) => Expr<boolean, D, C>;
|
|
28
29
|
type Reduce<T, V> = RORec<'value', V> & RORec<'this', T>;
|
|
29
30
|
export declare const $reduce: <T, V, D, C>(input: Expr<Arr<T>, D, C>, initialValue: Expr<V, D, C>, inExpr: Expr<V, D, C & Reduce<T, V>>) => Expr<V, D, C>;
|
package/package.json
CHANGED
package/types/json.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export type AsLiteral<T extends keyof any | boolean | N, V = NoUnion<T>> = T ext
|
|
|
62
62
|
} ? never : V : V;
|
|
63
63
|
type NoUnion<T, V = T> = T extends T ? ([V] extends [T] ? T : never) : never;
|
|
64
64
|
export type KVEntry<T> = O<{
|
|
65
|
-
[K in StrKey<T>]
|
|
65
|
+
[K in StrKey<T>]?: {
|
|
66
66
|
readonly k: K;
|
|
67
67
|
readonly v: T[K];
|
|
68
68
|
};
|