We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2adc33d commit 16459acCopy full SHA for 16459ac
src/promises.ts
@@ -8,7 +8,7 @@ export const delay = (ms: number, options: {
8
*/
9
unref?: boolean
10
} = {}) =>
11
- new Promise((resolve) => {
+ new Promise<void>((resolve) => {
12
const timer = setTimeout(resolve, ms);
13
14
if (options.unref && (timer as any).unref) {
0 commit comments