inferred-types 0.37.5 → 0.37.6
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/dist/index.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1284,13 +1284,13 @@ declare function strArrayToDict<T extends readonly string[]>(...strings: T): Exp
|
|
|
1284
1284
|
*/
|
|
1285
1285
|
declare function dictToKv<N extends Narrowable, T extends {
|
|
1286
1286
|
[key: string]: N;
|
|
1287
|
-
}, U extends boolean>(obj: T, _makeTuple?: U): U extends true ? UnionToTuple<
|
|
1287
|
+
}, U extends boolean>(obj: T, _makeTuple?: U): U extends true ? UnionToTuple<{ [K in keyof T]: {
|
|
1288
1288
|
key: K;
|
|
1289
|
-
value:
|
|
1290
|
-
}; }
|
|
1289
|
+
value: T[K];
|
|
1290
|
+
}; }[keyof T], LastInUnion<{ [K in keyof T]: {
|
|
1291
1291
|
key: K;
|
|
1292
|
-
value:
|
|
1293
|
-
}; }
|
|
1292
|
+
value: T[K];
|
|
1293
|
+
}; }[keyof T]>> : KvFrom<T>;
|
|
1294
1294
|
|
|
1295
1295
|
type DictArrayFilterCallback<K extends keyof T, T extends object, R extends true | false> = (key: K, value: Pick<T, K>) => R;
|
|
1296
1296
|
/**
|