File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -436,8 +436,8 @@ export function toError(errorOrMessage: unknown, defaultMessage = "Unknown Error
436
436
/**
437
437
* Unrefs a timeout or interval. When called, the active Timeout object will not require the Node.js event loop to remain active
438
438
*/
439
- export function allowProcessToExitWithoutWaitingForTimerOrInterval ( timeoutOrIntervalId : ReturnType < typeof setTimeout > | ReturnType < typeof setInterval > | undefined ) : void {
439
+ export function allowProcessToExitWithoutWaitingForTimerOrInterval ( timeoutOrIntervalId : ReturnType < typeof setTimeout > | undefined ) : void {
440
440
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 ( ) ;
442
442
}
443
443
}
You can’t perform that action at this time.
0 commit comments