import { response , Response } from 'express' ; response . customSuccess = function ( httpStatusCode , message , data = null ) : Response { return this . status ( httpStatusCode ) . json ( { message , data } ) ; } ;