UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

19 lines (17 loc) 509 B
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` @param O to update @param M to select fields @param A to update with @param match (?=`'default'`) to change precision @returns [[List]] @example ```ts ``` */ export type Replace<L extends List, M extends any, A extends any, match extends Match = 'default'> = Cast<OReplace<L, M, A, match>, List>