Update scripts

This commit is contained in:
freearhey
2025-11-06 02:44:00 +03:00
parent 597fda689d
commit a1028fc6a8
3 changed files with 7 additions and 30 deletions

View File

@@ -1,3 +1,2 @@
export * from './htmlTable'
export * from './utils'
export * from './queue'

View File

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