Represents a mapped type.

{ -readonly [K in Parameter as Name]?: Template }

Hierarchy

Constructors

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

Properties

nameType?: SomeType
optionalModifier?: "-" | "+"
parameter: string
parameterType: SomeType
readonlyModifier?: "-" | "+"
templateType: SomeType
type: "mapped" = "mapped"

The type name identifier.

Methods

  • getTypeString(): string
  • Implementation method for toString. needsParenthesis will be used to determine if the returned string should be wrapped in parenthesis.

    Returns string

  • needsParenthesis(): boolean
  • toString(): string
  • Return a string representation of this type.

    Returns string

  • Visit this type, returning the value returned by the visitor.

    Type Parameters

    • T

    Parameters

    Returns T

  • Type Parameters

    • T

    Parameters

    Returns undefined | T

Generated using TypeDoc