Skip to content

Commit

Permalink
export interface Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Oct 17, 2024
1 parent 0d63a3c commit 2874711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** Queue interface */
interface Queue {
export interface Queue {
/** Add an async function / promise wrapper to the queue */
add<T>(promiseFunction: () => PromiseLike<T>): Promise<T>;
/** Returns a promise that resolves when the queue is empty */
Expand All @@ -18,4 +18,3 @@ interface Queue {
* @return {Queue} - The newly created queue.
*/
export declare let newQueue: (concurrency: number) => Queue;
export {};
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Node<T> = {
}

/** Queue interface */
interface Queue {
export interface Queue {
/** Add an async function / promise wrapper to the queue */
add<T>(promiseFunction: () => PromiseLike<T>): Promise<T>
/** Returns a promise that resolves when the queue is empty */
Expand Down

0 comments on commit 2874711

Please sign in to comment.