Initial commit
This commit is contained in:
10
node_modules/tinyqueue/index.d.ts
generated
vendored
Normal file
10
node_modules/tinyqueue/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export declare type Comparator<T> = (a: T, b: T) => number;
|
||||
|
||||
export default class TinyQueue<T> {
|
||||
public data : T[];
|
||||
public length : number;
|
||||
constructor (items? : T[], compare? : Comparator<T>);
|
||||
peek () : T | undefined;
|
||||
pop () : T | undefined;
|
||||
push (item: T) : void;
|
||||
}
|
||||
Reference in New Issue
Block a user