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.
1 parent 649fca0 commit fc89635Copy full SHA for fc89635
index.d.ts
@@ -5,7 +5,7 @@ export default class TinyQueue<Item> {
5
public data : Item[];
6
public length : number;
7
constructor (items? : Item[], compare? : Comparator<Item>);
8
- peek () : Item;
9
- pop () : Item;
+ peek () : Item | undefined;
+ pop () : Item | undefined;
10
push (item: Item) : void;
11
}
0 commit comments