UNPKG

339 BTypeScriptView Raw
1/// <reference types="node" resolution-mode="require"/>
2import type { IncomingMessage } from 'node:http';
3import { BodyParserJSONConfig } from '../types.js';
4/**
5 * Parses JSON request body
6 */
7export declare function parseJSON(req: IncomingMessage, options: Partial<BodyParserJSONConfig>): Promise<{
8 parsed: any;
9 raw: string;
10}>;