UNPKG

sonic-forest

Version:

High-performance (binary) tree and sorted map implementation (AVL, Splay, Radix, Red-Black)

10 lines (9 loc) 281 B
import { ITreeNode } from './types'; export declare class TreeNode<K = unknown, V = unknown> implements ITreeNode<K, V> { k: K; v: V; p: ITreeNode<K, V> | undefined; l: ITreeNode<K, V> | undefined; r: ITreeNode<K, V> | undefined; constructor(k: K, v: V); }