UNPKG

@tunframework/tun

Version:

tun framework for node with typescript

3 lines (2 loc) 268 B
export declare type TunComposable<Context> = (ctx: Context, next: () => Promise<any>) => Promise<any> | void; export declare function compose<Context>(composables: TunComposable<Context>[]): (ctx: Context, next?: TunComposable<Context> | undefined) => Promise<any>;