UNPKG

@visulima/error-handler

Version:

Error handlers for use in development and production environments.

9 lines (8 loc) 306 B
import type { ServerResponse } from "node:http"; /** * Send `JSON` object * @param response response object * @param jsonBody of data * @param contentType optional content-type header value */ export declare const sendJson: (response: ServerResponse, jsonBody: unknown, contentType?: string) => void;