import { Collection, Dictionary } from '@freearhey/core' import { QueueItem } from '../types/queue' export class Queue { #items: Dictionary = new Dictionary() add(key: string, data: QueueItem) { this.#items.set(key, data) } has(key: string): boolean { return this.#items.has(key) } getItems(): Collection { return new Collection(Object.values(this.#items.data())) } }