mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update scripts
This commit is contained in:
@@ -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