1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- declare class Queue<ValueType> implements Iterable<ValueType> {
-
- readonly size: number;
-
- constructor();
- [Symbol.iterator](): IterableIterator<ValueType>;
- /**
- Add a value to the queue.
- */
- enqueue(value: ValueType): void;
- /**
- Remove the next value in the queue.
- @returns The removed value or `undefined` if the queue is empty.
- */
- dequeue(): ValueType | undefined;
- /**
- Clear the queue.
- */
- clear(): void;
- }
- export = Queue;
|