x/datastructure@1.2.1/queue/helper.d.ts

Implement different Data Structures using TypeScript. Deno Third-party Module.
Latest
// data typeexport type DataType<T> = { key: string|number value: T}
export type QueueType = { data: DataType<any> next: null|QueueType}|null
// Stack interfaceexport interface QueueApi { size: number; getFront(): null|DataType<any> getBack(): null|DataType<any> enqueue(data: DataType<any>): boolean dequeue(): boolean|DataType<any> search(key: string|number): boolean|DataType<any> update(key: string|number, newValue: any): boolean|DataType<any> log(): void}