inferred-types 0.55.7 → 0.55.8
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/modules/inferred-types/dist/index.cjs +3 -11
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +14 -11
- package/modules/inferred-types/dist/index.js +3 -11
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +3 -11
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +9 -6
- package/modules/runtime/dist/index.js +3 -11
- package/modules/runtime/dist/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -14933,13 +14933,13 @@ type TypeToken__Number$1 = `::${number}`;
|
|
|
14933
14933
|
type TypeToken__NumberSet$1 = "bigInt" | `bigInt::${bigint}` | "digit" | `digit::${2 | 3 | 4}` | "integer";
|
|
14934
14934
|
type params$1 = string;
|
|
14935
14935
|
type rtn$1 = string;
|
|
14936
|
-
type D$1 = TypeTokenDelimiter$1;
|
|
14937
|
-
type TypeToken__Fn$1 = `[${params$1}]` | `[${params$1}]${D$1}${rtn$1}` | `any::${rtn$1}`;
|
|
14938
|
-
type TypeToken__Gen$1 = `[${params$1}]` | `[${params$1}]${D$1}${rtn$1}` | `gen${D$1}any${D$1}${rtn$1}`;
|
|
14939
|
-
type TypeToken__FnSet$1 = `withoutParams` | `withoutParams${D$1}${rtn$1}` | `booleanLogic` | `booleanLogic${D$1}[${params$1}]`;
|
|
14936
|
+
type D$1$1 = TypeTokenDelimiter$1;
|
|
14937
|
+
type TypeToken__Fn$1 = `[${params$1}]` | `[${params$1}]${D$1$1}${rtn$1}` | `any::${rtn$1}`;
|
|
14938
|
+
type TypeToken__Gen$1 = `[${params$1}]` | `[${params$1}]${D$1$1}${rtn$1}` | `gen${D$1$1}any${D$1$1}${rtn$1}`;
|
|
14939
|
+
type TypeToken__FnSet$1 = `withoutParams` | `withoutParams${D$1$1}${rtn$1}` | `booleanLogic` | `booleanLogic${D$1$1}[${params$1}]`;
|
|
14940
14940
|
type RecVariant$1 = typeof TYPE_TOKEN_REC_VARIANTS$1[number];
|
|
14941
14941
|
type RecKeyVariant$1 = typeof TYPE_TOKEN_REC_KEY_VARIANTS$1[number];
|
|
14942
|
-
type TypeToken__Rec$1 = `${RecVariant$1}${D$1}${RecKeyVariant$1}` | `${D$1}kv${D$1}${string}` | `${D$1}kv${D$1}${string}${D$1}${"withUnknownIndex" | "withAnyIndex"}`;
|
|
14942
|
+
type TypeToken__Rec$1 = `${RecVariant$1}${D$1$1}${RecKeyVariant$1}` | `${D$1$1}kv${D$1$1}${string}` | `${D$1$1}kv${D$1$1}${string}${D$1$1}${"withUnknownIndex" | "withAnyIndex"}`;
|
|
14943
14943
|
type TypeToken__Undefined$1 = "";
|
|
14944
14944
|
type TypeToken__Null$1 = "";
|
|
14945
14945
|
type TypeToken__Boolean$1 = "";
|
|
@@ -17833,7 +17833,10 @@ type Mapper<TFrom extends AnyObject$1, TTo> = (<TInput extends TFrom>(from: TInp
|
|
|
17833
17833
|
declare function createObjectMap<TFrom extends AnyObject$1, TTo extends AnyObject$1>(): <TMap extends ObjectMap$1<TFrom, TTo>>(map: TMap) => ObjectMapConversion$1<TFrom, TTo, TMap>;
|
|
17834
17834
|
declare function createMapper<TFrom extends AnyObject$1, TTo extends AnyObject$1>(): <TFn extends <TInput extends TFrom>(cb: TInput) => { [K in keyof TInput]: TTo; }>(fn: TFn) => Mapper<TFrom, TTo>;
|
|
17835
17835
|
|
|
17836
|
-
|
|
17836
|
+
/**
|
|
17837
|
+
* merge two objects while preserving narrow types
|
|
17838
|
+
*/
|
|
17839
|
+
declare function mergeObjects<TDefault extends NarrowObject$1<D>, TOverride extends NarrowObject$1<O>, D extends Narrowable$1, O extends Narrowable$1>(defVal: TDefault, override: TOverride): MergeObjects$1<TDefault, TOverride>;
|
|
17837
17840
|
|
|
17838
17841
|
/**
|
|
17839
17842
|
* **mergeScalars**(a,b)
|
|
@@ -36235,13 +36238,13 @@ type TypeToken__Number = `::${number}`;
|
|
|
36235
36238
|
type TypeToken__NumberSet = "bigInt" | `bigInt::${bigint}` | "digit" | `digit::${2 | 3 | 4}` | "integer";
|
|
36236
36239
|
type params = string;
|
|
36237
36240
|
type rtn = string;
|
|
36238
|
-
type D = TypeTokenDelimiter;
|
|
36239
|
-
type TypeToken__Fn = `[${params}]` | `[${params}]${D}${rtn}` | `any::${rtn}`;
|
|
36240
|
-
type TypeToken__Gen = `[${params}]` | `[${params}]${D}${rtn}` | `gen${D}any${D}${rtn}`;
|
|
36241
|
-
type TypeToken__FnSet = `withoutParams` | `withoutParams${D}${rtn}` | `booleanLogic` | `booleanLogic${D}[${params}]`;
|
|
36241
|
+
type D$1 = TypeTokenDelimiter;
|
|
36242
|
+
type TypeToken__Fn = `[${params}]` | `[${params}]${D$1}${rtn}` | `any::${rtn}`;
|
|
36243
|
+
type TypeToken__Gen = `[${params}]` | `[${params}]${D$1}${rtn}` | `gen${D$1}any${D$1}${rtn}`;
|
|
36244
|
+
type TypeToken__FnSet = `withoutParams` | `withoutParams${D$1}${rtn}` | `booleanLogic` | `booleanLogic${D$1}[${params}]`;
|
|
36242
36245
|
type RecVariant = typeof TYPE_TOKEN_REC_VARIANTS[number];
|
|
36243
36246
|
type RecKeyVariant = typeof TYPE_TOKEN_REC_KEY_VARIANTS[number];
|
|
36244
|
-
type TypeToken__Rec = `${RecVariant}${D}${RecKeyVariant}` | `${D}kv${D}${string}` | `${D}kv${D}${string}${D}${"withUnknownIndex" | "withAnyIndex"}`;
|
|
36247
|
+
type TypeToken__Rec = `${RecVariant}${D$1}${RecKeyVariant}` | `${D$1}kv${D$1}${string}` | `${D$1}kv${D$1}${string}${D$1}${"withUnknownIndex" | "withAnyIndex"}`;
|
|
36245
36248
|
type TypeToken__Undefined = "";
|
|
36246
36249
|
type TypeToken__Null = "";
|
|
36247
36250
|
type TypeToken__Boolean = "";
|
|
@@ -7551,18 +7551,10 @@ function createMapper() {
|
|
|
7551
7551
|
};
|
|
7552
7552
|
}
|
|
7553
7553
|
function mergeObjects(defVal, override) {
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
const merged = {
|
|
7558
|
-
...intersectingKeys.reduce(
|
|
7559
|
-
(acc, key) => typeof override[key] === "undefined" ? { ...acc, [key]: defVal[key] } : { ...acc, [key]: override[key] },
|
|
7560
|
-
{}
|
|
7561
|
-
),
|
|
7562
|
-
...defUnique,
|
|
7563
|
-
...overrideUnique
|
|
7554
|
+
return {
|
|
7555
|
+
...defVal,
|
|
7556
|
+
...override
|
|
7564
7557
|
};
|
|
7565
|
-
return merged;
|
|
7566
7558
|
}
|
|
7567
7559
|
function mergeScalars(a, b) {
|
|
7568
7560
|
return isUndefined(b) ? a : b;
|