Update scripts
This commit is contained in:
1 parent
597fda689d
commit
a1028fc6a8
3 files changed
+7
-30
No files matched your search
@@ -1,3 +1,2 @@
|
||||
export * from './htmlTable'
|
||||
export * from './utils'
|
||||
export * from './queue'
|
||||
@@ -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()))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user