UNPKG

397 BTypeScriptView Raw
1/// <reference types="express" />
2import { Request, RequestBodyParserOptions } from '../types';
3import { BodyParser, RequestBody } from './types';
4export declare class TextBodyParser implements BodyParser {
5 name: symbol;
6 private textParser;
7 constructor(options?: RequestBodyParserOptions);
8 supports(mediaType: string): boolean;
9 parse(request: Request): Promise<RequestBody>;
10}