【发布时间】:2021-09-09 04:26:48
【问题描述】:
我应该在:之后为这个函数添加什么样的数据?
public saveHistory(log: String): "HERE!" {
return async (req: Request, res: Response, next: NextFunction): Promise<Response | void> => {
try {
...
} catch (e) {
...
}
};
}
【问题讨论】:
-
我认为是
(req: Request, res: Response, next: NextFunction) => Promise<Response | void> -
不,是类的方法
标签: typescript express types