UNPKG

bunxyz

Version:

Minimalist, fast, file-system based routing framework for Bun

9 lines (8 loc) 378 B
import type { BunFile } from "bun"; import { z } from "zod"; export declare class BunxyzResponse { static json(data: any, init?: ResponseInit): Response; static text(data: string, init?: ResponseInit): Response; static html(data: string | BunFile, init?: ResponseInit): Response; static validationError(errors: z.ZodError<any>, init?: ResponseInit): Response; }