source: node_modules/ts-toolbelt/out/List/Optional.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 451 bytes
RevLine 
[d24f17c]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>;
Note: See TracBrowser for help on using the repository browser.