Type of the queue elements.
Initial values for the queue.
Add an item to the end of the queue.
The item to enqueue.
Empty the whole queue.
A boolean to state if the queue is empty or not.
Peek at the first item in the queue without removing it.
The first item in the queue, or undefined if the queue is empty.
Remove an item from the head of the queue.
The item removed.
The current size of the queue.
Generated using TypeDoc
A custom hook for managing a queue of items.