export interface BinaryNode { left: this | null; right: this | null; entry: T; } export type Color = "black" | "red"; export interface RBTreeNode extends BinaryNode { parent: this | null; color: Color; }