Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AsyncOrderedHierarchyIterable<TNode, T>

Represents an [[AsyncIterable]] with a navigable hierarchy that is inherently ordered.

Type parameters

  • TNode
  • T: TNode

Hierarchy

Implemented by

Index

Properties

thenByAsync

thenByAsync: unique symbol = Symbol.for("AsyncOrderedIterable.thenByAsync")

Methods

[AsyncOrderedIterable.thenByAsync]

  • [AsyncOrderedIterable.thenByAsync]<K>(keySelector: function, comparer: Comparison<K> | Comparer<K>, descending: boolean): AsyncOrderedIterable<T>
  • Creates a subsequent AsyncOrderedIterable whose elements are also ordered by the provided key.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A callback used to select the key for an element.

        • (element: T): K
        • A callback used to select the key for an element.

          Parameters

          • element: T

          Returns K

    • comparer: Comparison<K> | Comparer<K>

      An optional callback used to compare two keys.

    • descending: boolean

      A value indicating whether to sort in descending (true) or ascending (false) order.

    Returns AsyncOrderedIterable<T>

[Hierarchical.hierarchy]

[Symbol.asyncIterator]

  • Returns AsyncIterator<T>

[Symbol.asyncIterator]

  • Returns AsyncIterator<T>

Generated using TypeDoc