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:
523 bytes
|
Line | |
---|
1 | import { Key } from './_Internal';
|
---|
2 | import { List } from './List';
|
---|
3 | import { Update as OUpdate } from '../Object/Update';
|
---|
4 | import { 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 | */
|
---|
16 | export declare type Update<L extends List, K extends Key, A extends any> = Cast<OUpdate<L, `${K & number}` | K, A>, List>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.