UNPKG

594 BTypeScriptView Raw
1import type { RequestHandler } from "express";
2import { IAPIFunctionWarning } from "./config";
3import type { IGatsbyFunction } from "../../redux/types";
4interface ICreateMiddlewareConfig {
5 getFunctions: () => Array<IGatsbyFunction>;
6 prepareFn?: (functionObj: IGatsbyFunction) => Promise<void> | void;
7 showDebugMessageInResponse?: boolean;
8}
9export declare function printConfigWarnings(warnings: Array<IAPIFunctionWarning>, functionObj: IGatsbyFunction): void;
10export declare function functionMiddlewares(middlewareConfig: ICreateMiddlewareConfig): Array<RequestHandler>;
11export {};