Skip to content

Commit fc89635

Browse files
trusktrmourner
authored andcommitted
pop and peek can return undefined (#17)
1 parent 649fca0 commit fc89635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class TinyQueue<Item> {
55
public data : Item[];
66
public length : number;
77
constructor (items? : Item[], compare? : Comparator<Item>);
8-
peek () : Item;
9-
pop () : Item;
8+
peek () : Item | undefined;
9+
pop () : Item | undefined;
1010
push (item: Item) : void;
1111
}

0 commit comments

Comments
 (0)