UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

10 lines (9 loc) 238 B
export declare function useQueue<T>(initialItems?: T[]): { items: T[]; size: number; isEmpty: boolean; enqueue: (item: T) => void; dequeue: () => T | undefined; peek: () => T | undefined; clear: () => void; };