mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 04:20:34 +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,
|
||||
|
||||
Reference in New Issue
Block a user