type alias Object.Recordimport { 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 ExamplesExample 1 Type ParametersK extends KeyoptionalA extends any = unknownoptionalmodx 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]]