Skip to content

Commit 8f6470a

Browse files
committed
fix typescript errors in dependencies
1 parent 6c2d913 commit 8f6470a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@
15171517
"mocha": "^11.7.4",
15181518
"prettier": "3.7.4",
15191519
"source-map-support": "^0.5.21",
1520-
"typescript": "5.9",
1520+
"typescript": "5.3",
15211521
"typescript-eslint": "^8.50.0",
15221522
"vscode-oniguruma": "^2.0.1",
15231523
"vscode-test": "^1.6.1",

src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ export function registerClientCommands(context: vscode.ExtensionContext, client:
105105
client.sendRequest<string>("served/getCompiler").then(
106106
() => {
107107
const settingCompiler = config(null).get("dubCompiler", undefined);
108-
const extra: (vscode.QuickPickItem & { value: string })[] = settingCompiler
108+
const extra: (vscode.QuickPickItem & { value: string; custom?: true })[] = settingCompiler
109109
? [{ label: settingCompiler, value: settingCompiler, description: "(from User Settings)" }]
110110
: [];
111111
showQuickPickWithInput(
112112
listCompilers().then((compilers) =>
113113
extra.concat(
114114
compilers
115115
.filter((a) => a.has && a.path)
116-
.map<vscode.QuickPickItem & { value: string; custom?: true }>((c) => ({
116+
.map<(typeof extra)[0]>((c) => ({
117117
label: c.has + "",
118118
value: c.path ?? c.has + "",
119119
description: makeCompilerDescription(c),

src/installer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function getInstallOutput(): vscode.OutputChannel {
4343
export function downloadFileInteractive(url: string, title: string, aborted: () => void): Thenable<Readable> {
4444
let progress: vscode.Progress<{ message: string; increment: number }> | undefined;
4545
let cancel: vscode.CancellationToken | undefined;
46-
let done: () => void | false | undefined;
46+
let done: (() => void) | false | undefined;
4747

4848
const stream = reqType("stream")
4949
.get<Readable>(url)
@@ -93,8 +93,8 @@ export function downloadFileInteractive(url: string, title: string, aborted: ()
9393
(_progress, _cancel) => {
9494
progress = _progress;
9595
cancel = _cancel;
96-
return new Promise((resolve) => {
97-
if (done === false) return resolve(undefined);
96+
return new Promise<void>((resolve) => {
97+
if (done === false) return resolve();
9898
done = resolve;
9999
});
100100
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"rootDir": "src",
99
"strict": true
1010
},
11-
"exclude": ["node_modules", ".vscode-test"]
11+
"exclude": ["node_modules", ".vscode-test", "eslint.config.mts"]
1212
}

0 commit comments

Comments
 (0)