Class MappedType

Represents a mapped type.

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

Hierarchy (view full)

Constructors

Properties

parameter: string
parameterType: Models.SomeType
templateType: Models.SomeType
type = "mapped"

The type name identifier.

nameType?: Models.SomeType
optionalModifier?: "+" | "-"
readonlyModifier?: "+" | "-"

Methods

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

    Returns string