mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 21:33:19 +00:00
fix(mcp): type the input refusal as the Error it is, so the strict build reads it
This commit is contained in:
@@ -61,7 +61,7 @@ function mapValidated(
|
||||
mapper: McpInputMapper,
|
||||
input: unknown,
|
||||
shape: Record<string, z.ZodType> | undefined,
|
||||
refuse: (message: string) => McpError,
|
||||
refuse: (message: string) => Error,
|
||||
): unknown {
|
||||
const mapped = mapper(input);
|
||||
if (mapped === input || !shape || !isRecord(input) || !isRecord(mapped)) return mapped;
|
||||
|
||||
Reference in New Issue
Block a user