1 | export declare class APIResponse {
|
2 | req: any;
|
3 | res: any;
|
4 | next: any;
|
5 | constructor(req?: any, res?: any, next?: any);
|
6 | static withError(req: any, res: any, error: any, hapiOutput?: boolean): void;
|
7 | processHandlerFunction(target: any, handlerFunction: Function, handlerArgs?: any[], successResponseHandler?: (responseData: any, res: any) => void): void;
|
8 | withError(error: any, hapiOutput?: boolean): void;
|
9 | withSuccess(data?: any, statusCode?: number, hapiOutput?: boolean): void;
|
10 | }
|