UNPKG

523 BTypeScriptView Raw
1import { Key } from './_Internal';
2import { List } from './List';
3import { Update as OUpdate } from '../Object/Update';
4import { Cast } from '../Any/Cast';
5/**
6 * Update in `L` the entries of key `K` with `A`.
7 * Use the [[x]] placeholder to get the current field type.
8 * @param L to update
9 * @param K to chose fields
10 * @param A to update with
11 * @returns [[List]]
12 * @example
13 * ```ts
14 * ```
15 */
16export declare type Update<L extends List, K extends Key, A extends any> = Cast<OUpdate<L, `${K & number}` | K, A>, List>;