UNPKG

@coolio/http

Version:
11 lines 542 B
import { BodyCasing, CaseConverter } from './helpers'; import { BodyParser, RawHttpResponse } from './httpClient.types'; declare type BodyParserImplementation = (rawResponse: RawHttpResponse) => Promise<any>; export interface BodyParserOptions { bodyCasing?: BodyCasing; customCaseConverter?: CaseConverter; defaultParser?: BodyParserImplementation; } export declare const bodyParser: ({ bodyCasing, customCaseConverter, defaultParser, }?: BodyParserOptions) => BodyParser<any>; export {}; //# sourceMappingURL=bodyParser.d.ts.map