UNPKG

gatsby

Version:
13 lines (12 loc) 683 B
import type { IGatsbyFunction } from "../../internal"; import type { GatsbyFunctionBodyParserCommonMiddlewareConfig, GatsbyFunctionBodyParserUrlencodedConfig } from "gatsby"; export interface IGatsbyBodyParserConfigProcessed { json: GatsbyFunctionBodyParserCommonMiddlewareConfig; raw: GatsbyFunctionBodyParserCommonMiddlewareConfig; text: GatsbyFunctionBodyParserCommonMiddlewareConfig; urlencoded: GatsbyFunctionBodyParserUrlencodedConfig; } export interface IGatsbyFunctionConfigProcessed { bodyParser: IGatsbyBodyParserConfigProcessed; } export declare function createConfig(userConfig: unknown, functionObj: IGatsbyFunction): IGatsbyFunctionConfigProcessed;