mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
fix(ci): tighten type signatures in gateway params validation
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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" } },
|
||||
|
||||
Reference in New Issue
Block a user