UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

5 lines (4 loc) 353 B
import { Response } from 'express'; import { ErrorMessage } from '../../core/errors/AppError'; export declare function sendSuccessResponse(res: Response, data: any, status?: number): Response<any, Record<string, any>>; export declare function sendErrorResponse(res: Response, error: ErrorMessage[], status?: number): Response<any, Record<string, any>>;