express-graphql
Version:
Production ready GraphQL HTTP middleware.
14 lines (13 loc) • 389 B
TypeScript
/// <reference types="node" />
import type { IncomingMessage } from 'http';
declare type Request = IncomingMessage & {
body?: unknown;
};
/**
* Provided a "Request" provided by express or connect (typically a node style
* HTTPClientRequest), Promise the body data contained.
*/
export declare function parseBody(req: Request): Promise<{
[param: string]: unknown;
}>;
export {};