Update scripts

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

No files matched your search

-1
View File
@@ -1,3 +1,2 @@
export * from './htmlTable'
export * from './utils'
export * from './queue'
-18
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()))
}
}