Skip to content

Commit

Permalink
Fix type of delay() promise
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Jun 7, 2024
1 parent 2adc33d commit 16459ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const delay = (ms: number, options: {
*/
unref?: boolean
} = {}) =>
new Promise((resolve) => {
new Promise<void>((resolve) => {
const timer = setTimeout(resolve, ms);

if (options.unref && (timer as any).unref) {
Expand Down

0 comments on commit 16459ac

Please sign in to comment.