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
|
Line | |
---|
1 | import { Key } from './_Internal';
|
---|
2 | import { List } from './List';
|
---|
3 | import { Update } from '../Object/Update';
|
---|
4 | import { x } from '../Any/x';
|
---|
5 | import { 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 | */
|
---|
16 | export 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.