rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
19 lines (17 loc) • 494 B
text/typescript
import {Key} from '../Any/Key'
import {List} from './List'
import {Update as OUpdate} from '../Object/Update'
import {Depth} from '../Object/_Internal'
/**
Update in `L` the entries of key `K` with `A`.
Use the [[x]] placeholder to get the current field type.
@param L to update
@param K to chose fields
@param A to update with
@returns [[List]]
@example
```ts
```
*/
export type Update<L extends List, K extends Key, A extends any, depth extends Depth = 'flat'> =
OUpdate<L, K, A, depth>