Add return type to prepareRemoteQueryRun

This commit is contained in:
Koen Vlaswinkel
2022-11-11 11:07:11 +01:00
parent 5905cf8811
commit 00905a9be3

View File

@@ -187,6 +187,17 @@ async function getPackedBundlePath(queryPackDir: string) {
});
}
export interface PreparedRemoteQuery {
actionBranch: string;
base64Pack: string;
repoSelection: RepositorySelection;
queryFile: string;
queryMetadata: QueryMetadata | undefined;
controllerRepo: Repository;
queryStartTime: number;
language: string;
}
export async function prepareRemoteQueryRun(
cliServer: cli.CodeQLCliServer,
credentials: Credentials,
@@ -194,7 +205,7 @@ export async function prepareRemoteQueryRun(
queryPackDir: string,
progress: ProgressCallback,
token: CancellationToken,
) {
): Promise<PreparedRemoteQuery> {
if (!(await cliServer.cliConstraints.supportsRemoteQueries())) {
throw new Error(`Variant analysis is not supported by this version of CodeQL. Please upgrade to v${cli.CliVersionConstraint.CLI_VERSION_REMOTE_QUERIES
} or later.`);