UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

11 lines (10 loc) 259 B
export declare function useQueue<T>({ initialValues, limit, }: { initialValues?: T[]; limit: number; }): { state: T[]; queue: T[]; add: (...items: T[]) => void; update: (fn: (state: T[]) => T[]) => void; cleanQueue: () => void; };