Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Selectable<T>

Interface for the Selectable Class. A selectable could be: a plain Object, a Map, a Set and an Array as well of channels.

Type parameters

  • T

Hierarchy

  • Selectable

Implemented by

Index

Properties

sel

sel: object | Map<any, Channel<T>> | Set<Channel<T>> | Channel<T>[]

A reference to the selectable object

Methods

filter

  • A method that execute the filter operation.

    Parameters

    • predicate: function

      A proper predicate function .

    Returns Selectable<T>

keyOf

  • keyOf(searchedCh: Channel<T>): any
  • A method that return the key of a specific channel. If the selectable is a Set, the channel itself will be returned. The not found channel status is not contemplated because this method is called only in a safe context.

    Parameters

    • searchedCh: Channel<T>

      A channel of which we are looking for the key.

    Returns any

mapToPromise

  • A method that map each channel contained into the selectable into a Promise containg that channel .

    Parameters

    Returns SelectableP<T>

revertToArray

  • Whatever the selectable is, this method convert it into an array of channels. Warning: Map and Object keys will be lost.

    Returns Channel<T>[]

Generated using TypeDoc