Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Case<T>

The Case class works together with the switch class to provide the different options based on the given value.

Type parameters

Hierarchy

  • Case

Constructors

Methods

Constructors

constructor

  • Constructor

    Parameters

    • value: T

      The value determines which cases is chosen and rendered.

    • toRender: Renderable | string

    Returns Case

Methods

getRenderable

  • Gets the renderable

    Returns Renderable

hasValue

  • hasValue(value: T): boolean
  • Checks to see if the case matches some passed in value.

    Parameters

    • value: T

      The value to check for a match in the case.

    Returns boolean

Generated using TypeDoc