We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5590f82 + 1d93f49 commit b576edcCopy full SHA for b576edc
src/priorityQueue.d.ts
@@ -12,10 +12,10 @@ export abstract class PriorityQueue<T> {
12
constructor(options?: PriorityQueueOptions<T>);
13
size(): number;
14
isEmpty(): boolean;
15
- front(): PriorityQueueItem<T> | T;
16
- back(): PriorityQueueItem<T> | T;
+ front(): PriorityQueueItem<T>;
+ back(): PriorityQueueItem<T>;
17
enqueue(element: T, priority?: number): PriorityQueue<T>;
18
- dequeue(): PriorityQueueItem<T> | T;
19
- toArray(): (PriorityQueueItem<T> | T)[];
+ dequeue(): PriorityQueueItem<T>;
+ toArray(): PriorityQueueItem<T>[];
20
clear(): void;
21
}
0 commit comments