UNPKG

@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>

28 lines 1.11 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { VercelError } from "./vercelerror.js"; export declare const InternalServerErrorCode: { readonly InternalServerError: "internal_server_error"; }; export type InternalServerErrorCode = ClosedEnum<typeof InternalServerErrorCode>; export type InternalServerErrorData = { status: number; code: InternalServerErrorCode; message: string; }; export declare class InternalServerError extends VercelError { status: number; code: InternalServerErrorCode; /** The original data that was passed to this error instance. */ data$: InternalServerErrorData; constructor(err: InternalServerErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const InternalServerErrorCode$inboundSchema: z.ZodNativeEnum<typeof InternalServerErrorCode>; /** @internal */ export declare const InternalServerError$inboundSchema: z.ZodType<InternalServerError, z.ZodTypeDef, unknown>; //# sourceMappingURL=internalservererror.d.ts.map