【发布时间】:2022-12-04 12:47:35
【问题描述】:
I am unable to use the Response object methods in my ts method and when I log it, it is an empty object. Not sure why it is not getting the response from the import
import { Response } from \'express\';
async sendRes(res:Response) {
res.status(200).send();
}
I get an error that says TypeError: res.status is not a function
标签: node.js typescript express