Skip to content

Commit 3d1c011

Browse files
committed
Fixed linting error after upgrading typescript
1 parent dab8e4f commit 3d1c011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/Utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ export function toError(errorOrMessage: unknown, defaultMessage = "Unknown Error
436436
/**
437437
* Unrefs a timeout or interval. When called, the active Timeout object will not require the Node.js event loop to remain active
438438
*/
439-
export function allowProcessToExitWithoutWaitingForTimerOrInterval(timeoutOrIntervalId: ReturnType<typeof setTimeout> | ReturnType<typeof setInterval> | undefined): void {
439+
export function allowProcessToExitWithoutWaitingForTimerOrInterval(timeoutOrIntervalId: ReturnType<typeof setTimeout> | undefined): void {
440440
if (typeof timeoutOrIntervalId === "object" && "unref" in timeoutOrIntervalId) {
441-
(timeoutOrIntervalId as { unref: () => ReturnType<typeof setTimeout> | ReturnType<typeof setInterval> }).unref();
441+
(timeoutOrIntervalId as { unref: () => ReturnType<typeof setTimeout> }).unref();
442442
}
443443
}

0 commit comments

Comments
 (0)