Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Object.P.Record

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

Create an object filled with A for the fields at the end of Path

Examples

Example 1

Type Parameters

Path extends List<Key>
A
optional
modx extends Modx = ["!", "W"]
definition: { !: { R: Record_RR<Path, A>; W: Record_RW<Path, A>; }; ?: { R: Record_OR<Path, A>; W: Record_OW<Path, A>; }; }[modx[0]][modx[1]]