[typescript]:类型'Response'上不存在属性'locals'

问题描述 投票:0回答:1

我想使用res.locals在中间件之间传递一些数据,但打字稿说我不能。 :(

我正在使用Restify。我需要插件吗?如果不是这样,将赞赏在中间件之间传递数据的替代解决方案。

node.js typescript restify
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.