nexus-agents - v2.80.0
    Preparing search index...

    Function isZodError

    MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

    • Type guard to check if a value is a Zod error.

      Parameters

      • error: unknown

        The value to check

      Returns error is ZodError<unknown>

      True if the value is a ZodError

      if (isZodError(error)) {
      console.error(formatZodError(error));
      }