【发布时间】:2018-11-02 22:50:16
【问题描述】:
我的代码是:
Object.keys(res.body.data).should.containEql('id')
TypeScript 给我的错误是
Property 'should' does not exist on type 'string[]'.
那么我如何在 TypeScript 中使用should?
【问题讨论】:
-
如果我的回答解决了您的问题,请告诉我!
标签: typescript should.js