UNPKG

428 BTypeScriptView Raw
1import { _Omit } from '../Object/Omit';
2import { _Pick } from '../Object/Pick';
3import { Length } from './Length';
4import { List } from './List';
5/**
6 * Transform a [[List]] into an [[Object]] equivalent
7 * @param L to transform
8 * @returns [[Object]]
9 * @example
10 * ```ts
11 * ```
12 */
13export declare type ObjectOf<O extends List> = O extends unknown ? number extends Length<O> ? _Pick<O, number> : _Omit<O, keyof any[]> : never;