Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>L.Update

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias L.Update
import { type L } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Update } = L;

Update in L the entries of key K with A. Use the [[x]] placeholder to get the current field type.

Examples

Example 1

Type Parameters

L extends List
K extends Key
A extends any
definition: Cast<OUpdate<L, `${K & number}` | K, A>, List>