@omegup/msync 0.0.23 → 0.0.24

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 (2) hide show
  1. package/index.d.ts +4 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -478,9 +478,10 @@ type s = string;
478
478
  declare const $unwind: <T extends doc, K extends s, U extends doc>(k: AsLiteral<K>, dict: RORec<K, "key">) => DeltaStages<O, T & Rec<K, Arr<U>>, T & Rec<K, U>>;
479
479
 
480
480
  type Allowed$2<K extends string> = Exclude<K, keyof (TS & ID)>;
481
- type Patch<V, KK extends StrKey<V>> = ((OPick<V, Allowed$2<KK>> & ID) | (Rec<Allowed$2<KK>, N> & ID)) & TS;
482
- declare const $simpleMerge: <V extends O>() => <KK extends StrKey<V>, Source extends doc, Out extends doc>(out: RWCollection<Out | Replace<Out, Patch<V, KK>>, Out>, keys: ExprsExact<OPick<V, Allowed$2<KK>>, Source>) => StreamRunnerParam<Source, "out">;
483
- declare const $merge: <V extends O>() => <KK extends StrKey<V>, Out extends doc, SourcePart extends doc>(out: RWCollection<Out | Replace<Out, Patch<V, KK>>, Out>, keys: ExprsExact<OPick<V, Allowed$2<KK>>, SourcePart>) => StreamRunnerParam<Delta<SourcePart>, "out">;
481
+ type Patch<V, KK extends StrKey<V> = StrKey<V>> = ((OPick<V, Allowed$2<KK>> & ID) | (Rec<Allowed$2<KK>, N> & ID)) & TS;
482
+ type TakeDoc<V, E = ID, KK extends StrKey<V> = StrKey<V>> = OPick<V, Allowed$2<KK>> & E;
483
+ declare const $simpleMerge: <V extends O>() => <Source extends doc, Out extends doc>(out: RWCollection<Out | Replace<Out, Patch<V>>, Out>, keys: ExprsExact<TakeDoc<V, unknown>, Source>) => StreamRunnerParam<Source, "out">;
484
+ declare const $merge: <V extends O>() => <Out extends doc, SourcePart extends doc>(out: RWCollection<Out | Replace<Out, Patch<V>>, Out>, keys: ExprsExact<TakeDoc<V, unknown>, SourcePart>) => StreamRunnerParam<Delta<SourcePart>, "out">;
484
485
 
485
486
  type ND = {
486
487
  readonly deletedAt?: null;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.esm.js",
4
4
  "typings": "index.d.ts",
5
5
  "name": "@omegup/msync",
6
- "version": "0.0.23",
6
+ "version": "0.0.24",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",