fix(ci): tighten type signatures in gateway params validation

This commit is contained in:
Peter Steinberger
2026-03-03 03:04:03 +00:00
parent 7fd4328854
commit f7f0caa5c7
2 changed files with 8 additions and 2 deletions

View File

@@ -365,7 +365,11 @@ function resolveOptionalStringParam(value: unknown): string | undefined {
return typeof value === "string" && value.trim() ? value.trim() : undefined;
}
function respondInvalidMethodParams(respond: RespondFn, method: string, errors: unknown): void {
function respondInvalidMethodParams(
respond: RespondFn,
method: string,
errors: Parameters<typeof formatValidationErrors>[0],
): void {
respond(
false,
undefined,

View File

@@ -182,7 +182,9 @@ describe("update-startup", () => {
}
async function runStableUpdateCheck(params: {
onUpdateAvailableChange?: ReturnType<typeof vi.fn>;
onUpdateAvailableChange?: Parameters<
typeof runGatewayUpdateCheck
>[0]["onUpdateAvailableChange"];
}) {
await runGatewayUpdateCheck({
cfg: { update: { channel: "stable" } },