Skip to content

Commit

Permalink
fix(types): unrwap processqueue promises
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Apr 1, 2024
1 parent 4e97950 commit 1fa0f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helix-shared-process-queue/src/process-queue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export declare type ProcessQueueHandler<
export default function processQueue<
TQueue extends Queue,
THandler extends ProcessQueueHandler<TQueue>,
TReturn = ReturnType<THandler>
TReturn = ReturnType<THandler> extends PromiseLike<infer U> ? U : ReturnType<THandler>
>(
queue: TQueue,
fn: THandler,
Expand Down

0 comments on commit 1fa0f9e

Please sign in to comment.