parseBody.d.ts 389 B

12345678910111213
  1. /// <reference types="node" />
  2. import type { IncomingMessage } from 'http';
  3. declare type Request = IncomingMessage & {
  4. body?: unknown;
  5. };
  6. /**
  7. * Provided a "Request" provided by express or connect (typically a node style
  8. * HTTPClientRequest), Promise the body data contained.
  9. */
  10. export declare function parseBody(req: Request): Promise<{
  11. [param: string]: unknown;
  12. }>;
  13. export {};