Add return type to prepareRemoteQueryRun
This commit is contained in:
@@ -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(
|
export async function prepareRemoteQueryRun(
|
||||||
cliServer: cli.CodeQLCliServer,
|
cliServer: cli.CodeQLCliServer,
|
||||||
credentials: Credentials,
|
credentials: Credentials,
|
||||||
@@ -194,7 +205,7 @@ export async function prepareRemoteQueryRun(
|
|||||||
queryPackDir: string,
|
queryPackDir: string,
|
||||||
progress: ProgressCallback,
|
progress: ProgressCallback,
|
||||||
token: CancellationToken,
|
token: CancellationToken,
|
||||||
) {
|
): Promise<PreparedRemoteQuery> {
|
||||||
if (!(await cliServer.cliConstraints.supportsRemoteQueries())) {
|
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
|
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.`);
|
} or later.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user