UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

17 lines (16 loc) 553 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 declare type Replace<L extends List, M extends any, A extends any, match extends Match = 'default'> = Cast<OReplace<L, M, A, match>, List>;