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 929 B
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { VercelError } from "./vercelerror.js"; export declare const NotFoundCode: { readonly NotFound: "not_found"; }; export type NotFoundCode = ClosedEnum<typeof NotFoundCode>; export type NotFoundData = { status: number; code: NotFoundCode; message: string; }; export declare class NotFound extends VercelError { status: number; code: NotFoundCode; /** The original data that was passed to this error instance. */ data$: NotFoundData; constructor(err: NotFoundData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const NotFoundCode$inboundSchema: z.ZodNativeEnum<typeof NotFoundCode>; /** @internal */ export declare const NotFound$inboundSchema: z.ZodType<NotFound, z.ZodTypeDef, unknown>; //# sourceMappingURL=notfound.d.ts.map