Skip to content

Commit 7af65ed

Browse files
Use computed type instead of any for listCodeqlDatabases response
This endpoint actually has the correct type already. We could explicitly declare it as RestEndpointMethodTypes["codeScanning"]["listCodeqlDatabases"]["response"]["data"][0] but this seems unnecessary given how ugly that type is. If we just do nothing then typescript already computes the correct type for us.
1 parent 116acef commit 7af65ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/databases/database-fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ export async function convertGithubNwoToDatabaseUrl(
590590
repo,
591591
});
592592

593-
const languages = response.data.map((db: any) => db.language);
593+
const languages = response.data.map((db) => db.language);
594594

595595
if (!language || !languages.includes(language)) {
596596
language = await promptForLanguage(languages, progress);

0 commit comments

Comments
 (0)