nitropack
Version:
Build and Deploy Universal JavaScript Servers
9 lines (8 loc) • 318 B
TypeScript
import type { NitroErrorHandler } from "nitropack/types";
export declare function defineNitroErrorHandler(handler: NitroErrorHandler): NitroErrorHandler;
export type InternalHandlerResponse = {
status: number;
statusText: string;
headers: Record<string, string>;
body: string | Record<string, any>;
};