type alias L.Replaceimport { type L } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts"; const { Replace } = L; Update with A the entries of L that match M ExamplesExample 1 Type ParametersL extends ListM extends anyA extends anyoptionalmatch extends Match = "default"definition: Cast<OReplace<L, M, A, match>, List>