KC's Workspace
    Preparing search index...

    Represents a conditional type.

    let value: Check extends Extends ? True : False;
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    checkType: SomeType
    extendsType: SomeType
    falseType: SomeType
    trueType: SomeType
    type: "conditional"

    The type name identifier.

    Methods

    • Return the estimated size of the type if it was all printed on one line.

      Returns number

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

      Returns string

    • Parameters

      Returns boolean

    • Parameters

      Returns string

    • Return a string representation of this type.

      Returns string

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

      Type Parameters

      • T
      • A extends any[] = []

      Parameters

      Returns T

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

      Type Parameters

      • T
      • A extends any[] = []

      Parameters

      Returns T | undefined