source: node_modules/ts-toolbelt/out/List/Nullable.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: 539 bytes
RevLine 
[d24f17c]1import { Key } from './_Internal';
2import { List } from './List';
3import { Update } from '../Object/Update';
4import { x } from '../Any/x';
5import { Cast } from '../Any/Cast';
6/**
7 * Make some entries of `L` nullable (deeply or not)
8 * @param L to make nullable
9 * @param K (?=`Key`) to choose fields
10 * @param depth (?=`'flat'`) 'deep' to do it deeply
11 * @returns [[List]]
12 * @example
13 * ```ts
14 * ```
15 */
16export declare type Nullable<L extends List, K extends Key = Key> = Cast<Update<L, `${K & number}` | K, x | null | undefined>, List>;
Note: See TracBrowser for help on using the repository browser.