rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
19 lines (17 loc) • 509 B
text/typescript
import {Replace as OReplace} from '../Object/Replace'
import {Match} from '../Any/_Internal'
import {Cast} from '../Any/Cast'
import {List} from './List'
/**
Update with `A` the entries of `L` that match `M`
```ts
```
*/
export type Replace<L extends List, M extends any, A extends any, match extends Match = 'default'> =
Cast<OReplace<L, M, A, match>, List>