Projektstart
This commit is contained in:
27
backend/node_modules/mnemonist/static-interval-tree.d.ts
generated
vendored
Normal file
27
backend/node_modules/mnemonist/static-interval-tree.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Mnemonist StaticIntervalTree Typings
|
||||
* =====================================
|
||||
*/
|
||||
type StaticIntervalTreeGetter<T> = (item: T) => number;
|
||||
type StaticIntervalTreeGettersTuple<T> = [StaticIntervalTreeGetter<T>, StaticIntervalTreeGetter<T>];
|
||||
|
||||
export default class StaticIntervalTree<T> {
|
||||
|
||||
// Members
|
||||
height: number;
|
||||
size: number;
|
||||
|
||||
// Constructor
|
||||
constructor(intervals: Array<T>, getters?: StaticIntervalTreeGettersTuple<T>);
|
||||
|
||||
// Methods
|
||||
intervalsContainingPoint(point: number): Array<T>;
|
||||
intervalsOverlappingInterval(interval: T): Array<T>;
|
||||
inspect(): any;
|
||||
|
||||
// Statics
|
||||
static from<I>(
|
||||
iterable: Iterable<I> | {[key: string]: I},
|
||||
getters?: StaticIntervalTreeGettersTuple<I>
|
||||
): StaticIntervalTree<I>;
|
||||
}
|
||||
Reference in New Issue
Block a user