UNPKG

for-emit-of

Version:

Turn Node.js Events into Async Iterables

7 lines (6 loc) 165 B
export interface Queue<T = any> { length: number; shift(): T | undefined; push(value: T): void; } export declare function getQueue<T = any>(): Queue<T>;