UNPKG

@ethora/chat-component

Version:

1. npm create vite@latest 2. select name of project, select type (react/js) 3. cd project-name 4. npm i 5. npm i @ethora/chat-component 6. go to file src/App.tsx and replace it with this code

15 lines (14 loc) 418 B
export declare class PriorityQueue<T> { private items; private compare; constructor(compareFunction: (a: T, b: T) => number); push(item: T): void; pop(size?: number): T[]; peek(): T | undefined; clear(): void; isEmpty(): boolean; size(): number; find(predicate: (item: T) => boolean): T | undefined; toArray(): T[]; contains(predicate: (item: T) => boolean): boolean; }