Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Object.Record

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

Create an object filled with A for the fields K

Examples

Example 1

Type Parameters

K extends Key
optional
A extends any = unknown
optional
modx extends Modx = ["!", "W"]
definition: { !: { R: readonly [P in K]: A; W: [P in K]: A; }; ?: { R: readonly [P in K]?: A; W: [P in K]?: A; }; }[modx[0]][modx[1]]