Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InferredType

Represents an inferred type, U in the example below.

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

Hierarchy

Index

Constructors

constructor

Properties

name

name: string

type

type: string = "inferred"

The type name identifier.

Methods

clone

equals

  • equals(type: unknown): boolean
  • Test whether this type equals the given type.

    Parameters

    • type: unknown

      The type that should be checked for equality.

    Returns boolean

    TRUE if the given type equals this type, FALSE otherwise.

toObject

  • toObject(): any

toString

  • toString(): string

Static isTypeListEqual

  • isTypeListEqual(a: Type[], b: Type[]): boolean

Static isTypeListSimilar

  • isTypeListSimilar(a: Type[], b: Type[]): boolean

Generated using TypeDoc