UNPKG

@connected/client

Version:

The hassle free way to call your server-side code

16 lines 560 B
type HandlerType = 'Normal' | 'Error'; type TypedHandler = { type: HandlerType; handler: (next: Function, ...args: any[]) => void; }; type NormalHandler = (next: Function, ...args: any[]) => void; type ErrorHandler = (error: any, next: Function, ...args: any[]) => void; export default class Middleware { handlers: TypedHandler[]; use(handler: NormalHandler): void; useErrorHandler(handler: ErrorHandler): void; go(done: Function, ...args: any[]): void; private processHandlers; } export {}; //# sourceMappingURL=middleware.d.ts.map