Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Responses<T>

A helper class that can fulfil the {@link IResponses} interface.

Type parameters

  • T

Hierarchy

  • Responses

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

hint

  • get hint(): T | undefined

size

  • get size(): number
  • The number of responses that are possible

    Returns number

Methods

__@iterator

  • __@iterator(): IterableIterator<InputType>

accepts

  • accepts(value: InputType): boolean
  • Determines if a certain input type is allowed

    Parameters

    • value: InputType

      the input type to check

    Returns boolean

    true if the input type is allowed

has

  • has(value: InputType): boolean