Class InferredType

Represents an inferred type, U in the example below.

type Z = Promise<string> extends Promise<infer U> : never

Hierarchy (view full)

Constructors

Properties

name: string
type = "inferred"

The type name identifier.

constraint?: Models.SomeType

Methods

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

    Returns string