UNPKG

451 BTypeScriptView Raw
1import { Depth } from '../Object/_Internal';
2import { RequiredPart } from '../Object/Required';
3import { List } from './List';
4import { Cast } from '../Any/Cast';
5/**
6 * Make `L` required (deeply or not)
7 * @param L to make required
8 * @param depth (?=`'flat'`) 'deep' to do it deeply
9 * @returns [[List]]
10 * @example
11 * ```ts
12 * ```
13 */
14export declare type Required<L extends List, depth extends Depth = 'flat'> = Cast<RequiredPart<L, depth>, List>;