Skip to content

Commit 80787b9

Browse files
Merge branch 'refactor' of github.com:KushalMeghani1644/TypeScript into refactor
2 parents c4e7112 + 74ff8f3 commit 80787b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
normalizeSlashes,
1414
sys,
1515
toPath,
16+
version,
1617
} from "../typescript/typescript.js";
1718
import * as ts from "../typescript/typescript.js";
1819

@@ -693,7 +694,7 @@ class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInstaller {
693694
const timeoutId = nodeSetTimeout(() => {
694695
resolve();
695696
}, backoffDelay);
696-
timeoutId.unref?.();
697+
timeoutId.unref();
697698
});
698699

699700
if (this.log.isEnabled()) {
@@ -760,7 +761,7 @@ class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInstaller {
760761

761762
override installWorker(
762763
requestId: number,
763-
packageNames: string[],
764+
packageNames: readonly string[],
764765
cwd: string,
765766
onRequestCompleted: ts.server.typingsInstaller.RequestCompletedAction,
766767
): void {

0 commit comments

Comments
 (0)