@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
26 lines • 795 B
TypeScript
import { VercelError } from "./vercelerror.js";
export declare class ResponseValidationError extends VercelError {
/**
* The raw value that failed validation.
*/
readonly rawValue: unknown;
/**
* The raw message that failed validation.
*/
readonly rawMessage: unknown;
constructor(message: string, extra: {
response: Response;
request: Request;
body: string;
cause: unknown;
rawValue: unknown;
rawMessage: unknown;
});
/**
* Return a pretty-formatted error message if the underlying validation error
* is a ZodError or some other recognized error type, otherwise return the
* default error message.
*/
pretty(): string;
}
//# sourceMappingURL=responsevalidationerror.d.ts.map