I'm trying to overwrite the node express send
method of the Response
type.
The method is of type Send
that is defined as such:
interface Send {
(status: number, body?: any): Response;
(body?: any): Response;
}
My objective is to add local logging of the response send with express, but I can't make an implementation of this type, even as a function like explained in other questions like this.