/** * Mnemonist StaticIntervalTree Typings * ===================================== */ type StaticIntervalTreeGetter = (item: T) => number; type StaticIntervalTreeGettersTuple = [StaticIntervalTreeGetter, StaticIntervalTreeGetter]; export default class StaticIntervalTree { // Members height: number; size: number; // Constructor constructor(intervals: Array, getters?: StaticIntervalTreeGettersTuple); // Methods intervalsContainingPoint(point: number): Array; intervalsOverlappingInterval(interval: T): Array; inspect(): any; // Statics static from( iterable: Iterable | {[key: string]: I}, getters?: StaticIntervalTreeGettersTuple ): StaticIntervalTree; }