Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a mapped type.

{ -readonly [K in keyof U & string as `a${K}`]?: Foo }

Hierarchy

Index

Constructors

constructor

  • new MappedType(parameter: string, parameterType: Type, templateType: Type, readonlyModifier?: "-" | "+", optionalModifier?: "-" | "+", nameType?: Type): MappedType

Properties

Optional nameType

nameType?: Type

Optional optionalModifier

optionalModifier?: "-" | "+"

parameter

parameter: string

parameterType

parameterType: Type

Optional readonlyModifier

readonlyModifier?: "-" | "+"

templateType

templateType: Type

Readonly type

type: "mapped" = "mapped"

The type name identifier.

Methods

toString

  • toString(): string

visit

Generated using TypeDoc