UNPKG

alagarr

Version:

Alagarr is a request-response helper library that removes the boilerplate from your Node.js serverless functions and helps make your code portable.

3 lines (2 loc) 193 B
export declare type Middleware<T> = (...args: any[]) => T; export default function applyMiddleware<T>(middlewareList: ReadonlyArray<Middleware<T>>, initialData: T, ...args: any[]): Promise<T>;