Fix typo in BasicErrorResponse

This commit is contained in:
Koen Vlaswinkel
2023-10-02 11:02:44 +02:00
parent 7578697e92
commit 095d56ee37
2 changed files with 14 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ export enum RequestKind {
AutoModel = "autoModel",
}
export interface BasicErorResponse {
export interface BasicErrorResponse {
message: string;
}
@@ -27,7 +27,7 @@ interface GetRepoRequest {
};
response: {
status: number;
body: Repository | BasicErorResponse | undefined;
body: Repository | BasicErrorResponse | undefined;
};
}
@@ -37,7 +37,7 @@ interface SubmitVariantAnalysisRequest {
};
response: {
status: number;
body?: VariantAnalysis | BasicErorResponse;
body?: VariantAnalysis | BasicErrorResponse;
};
}
@@ -47,7 +47,7 @@ interface GetVariantAnalysisRequest {
};
response: {
status: number;
body?: VariantAnalysis | BasicErorResponse;
body?: VariantAnalysis | BasicErrorResponse;
};
}
@@ -58,7 +58,7 @@ interface GetVariantAnalysisRepoRequest {
};
response: {
status: number;
body?: VariantAnalysisRepoTask | BasicErorResponse;
body?: VariantAnalysisRepoTask | BasicErrorResponse;
};
}
@@ -88,7 +88,7 @@ interface CodeSearchRequest {
};
response: {
status: number;
body?: CodeSearchResponse | BasicErorResponse;
body?: CodeSearchResponse | BasicErrorResponse;
};
}
@@ -105,7 +105,7 @@ interface AutoModelRequest {
};
response: {
status: number;
body?: AutoModelResponse | BasicErorResponse;
body?: AutoModelResponse | BasicErrorResponse;
};
}

View File

@@ -8,7 +8,7 @@ import { gzipDecode } from "../zlib";
import {
AutoModelResponse,
BasicErorResponse,
BasicErrorResponse,
CodeSearchResponse,
GetVariantAnalysisRepoResultRequest,
GitHubApiRequest,
@@ -147,7 +147,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
Repository | BasicErorResponse | undefined
Repository | BasicErrorResponse | undefined
>(response),
},
};
@@ -163,7 +163,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
VariantAnalysis | BasicErorResponse | undefined
VariantAnalysis | BasicErrorResponse | undefined
>(response),
},
};
@@ -181,7 +181,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
VariantAnalysis | BasicErorResponse | undefined
VariantAnalysis | BasicErrorResponse | undefined
>(response),
},
};
@@ -199,7 +199,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
VariantAnalysisRepoTask | BasicErorResponse | undefined
VariantAnalysisRepoTask | BasicErrorResponse | undefined
>(response),
},
};
@@ -233,7 +233,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
CodeSearchResponse | BasicErorResponse | undefined
CodeSearchResponse | BasicErrorResponse | undefined
>(response),
},
};
@@ -250,7 +250,7 @@ async function createGitHubApiRequest(
response: {
status,
body: await jsonResponseBody<
BasicErorResponse | AutoModelResponse | undefined
BasicErrorResponse | AutoModelResponse | undefined
>(response),
},
};