UNPKG

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