1 | import { Length } from './Length';
|
2 | import { Pos } from '../Iteration/Pos';
|
3 | import { Next } from '../Iteration/Next';
|
4 | import { IterationOf } from '../Iteration/IterationOf';
|
5 | import { Iteration } from '../Iteration/Iteration';
|
6 | import { Cast } from '../Any/Cast';
|
7 | import { Record } from '../Object/Record';
|
8 | import { Key } from '../Any/Key';
|
9 | import { List } from './List';
|
10 | import { Naked } from './_Internal';
|
11 | import { Extends } from '../Any/Extends';
|
12 | import { PatchFlat } from '../Object/Patch';
|
13 |
|
14 |
|
15 |
|
16 | declare type __ZipObj<LKeys extends List<Key>, LFields extends List, O extends object = {}, I extends Iteration = IterationOf<0>> = {
|
17 | 0: __ZipObj<LKeys, LFields, PatchFlat<O, Record<LKeys[Pos<I>], LFields[Pos<I>]>>, Next<I>>;
|
18 | 1: O;
|
19 | }[Extends<Pos<I>, Length<LKeys>>];
|
20 |
|
21 |
|
22 |
|
23 | export declare type _ZipObj<LKeys extends List<Key>, LFields extends List> = __ZipObj<Naked<LKeys>, LFields> extends infer X ? Cast<X, object> : never;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare type ZipObj<LKeys extends List<Key>, LFields extends List> = LKeys extends unknown ? LFields extends unknown ? _ZipObj<LKeys, LFields> : never : never;
|
34 | export {};
|