Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConditionalType

Represents a conditional type.

let value: C extends E ? T : F;
let value2: Check extends Extends ? True : False;

Hierarchy

  • Type
    • ConditionalType

Index

Constructors

constructor

Properties

checkType

checkType: Type

extendsType

extendsType: Type

falseType

falseType: Type

trueType

trueType: Type

type

type: string = "conditional"

The type name identifier.

Methods

clone

equals

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

    Parameters

    • type: any

      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