From d25e11bee6ca5ca523884da132d18e1400e077b9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 14:41:48 +0200 Subject: Initial commit --- node_modules/app-builder/lib/compose.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/app-builder/lib/compose.d.ts (limited to 'node_modules/app-builder/lib/compose.d.ts') diff --git a/node_modules/app-builder/lib/compose.d.ts b/node_modules/app-builder/lib/compose.d.ts new file mode 100644 index 0000000..7c848af --- /dev/null +++ b/node_modules/app-builder/lib/compose.d.ts @@ -0,0 +1,13 @@ +export interface Middleware { + (context: T, next: ContinuationMiddleware): any; +} +export interface ContinuationMiddleware { + (context?: T, next?: Middleware): any; +} +export declare function functionList(list: Function | Function[], ...args: any[]): Middleware[]; +/** + * Create a function to invoke all passed middleware functions + * with a single argument context + * @param middleware + */ +export declare function compose(...middleware: (Middleware | Middleware[])[]): ContinuationMiddleware; -- cgit