Options
All
  • Public
  • Public/Protected
  • All
Menu

The public API declares all the types that are exposed through regular usage of this package. All types and interfaces defined here can be used in client code. The default export of the package is AVLTreeFactories, a plain object that contains factory methods for AVL tree instances. You can import the package as follows:

import AVLTree from 'avl-bst'

Index

Interfaces

Type aliases

Variables

Type aliases

GetKey

GetKey<K, V>: (element: V) => K

The signature for functions that derive orderable keys from complex values.

Type parameters

  • K: Ord = Ord

    The key type to extract from node values.

  • V = unknown

    The node value type from which to extract keys.

Type declaration

    • (element: V): K
    • Parameters

      • element: V

      Returns K

Ord

Ord: string | number

The native orderable types whose relative order can be compared with > and <.

Variables

Const default