Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Object/Record"

Index

Type aliases

Type aliases

Record

Record<K, A, modx>: { '!': { 'R': { readonly [P in K]: A; }; 'W': { [P in K]: A; }; }; '?': { 'R': { readonly [P in K]?: A | undefined; }; 'W': { [P in K]?: A | undefined; }; }; }[modx[0]][modx[1]]

Create an object filled with A for the fields K

Type parameters

  • K: Index

    to choose fields

  • A: any

    to fill fields with

  • modx: Modx

    to set modifiers (?=['!', 'W'])

returns

object

example

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.