Skip to content

Commit b719600

Browse files
committed
Fixed TS errors
1 parent 79fdac3 commit b719600

File tree

1 file changed

+2
-1
lines changed
  • packages/database/src/core/util

1 file changed

+2
-1
lines changed

packages/database/src/core/util/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,11 +618,12 @@ export const setTimeoutNonBlocking = function (
618618
time: number
619619
): number | object {
620620
const timeout: number | object = setTimeout(fn, time);
621-
// @ts-ignore Deno and unrefTimer are only defined in Deno environments.
622621
// Note: at the time of this comment, unrefTimer is under the unstable set of APIs. Run with --unstable to enable the API.
623622
if (
624623
typeof timeout === 'number' &&
624+
// @ts-ignore Is only defined in Deno environments.
625625
typeof Deno !== 'undefined' &&
626+
// @ts-ignore Deno and unrefTimer are only defined in Deno environments.
626627
Deno['unrefTimer']
627628
) {
628629
// @ts-ignore Deno and unrefTimer are only defined in Deno environments.

0 commit comments

Comments
 (0)