【问题标题】:Error: node_modules/@types/jasmine/index.d.ts:668:15 - error TS2430: Interface 'FunctionMatchers<Fn>' incorrectly extends interface 'Matchers<any>'错误:node_modules/@types/jasmine/index.d.ts:668:15 - 错误 TS2430:接口 'FunctionMatchers<Fn>' 错误地扩展了接口 'Matchers<any>'
【发布时间】:2021-07-26 11:22:48
【问题描述】:

谁能告诉我为什么会出现这个问题以及如何解决它。

错误:node_modules/@types/jasmine/index.d.ts:668:15 - 错误 TS2430:接口“FunctionMatchers”错误地扩展了接口“Matchers”。 'toHaveBeenCalledWith(...)' 返回的类型在这些类型之间不兼容。类型 'boolean' 不可分配给类型 'Promise' 接口 FunctionMatchers 扩展 Matchers {

【问题讨论】:

  • 你应该更新代码。
  • 您找到解决方案了吗?

标签: angular typescript ngxs


【解决方案1】:

更新@types/jasminewd2 为我解决了这个问题

ng update @types/jasminewd2

【讨论】:

    猜你喜欢
    • 2019-03-21
    • 2017-07-08
    • 2017-07-10
    • 1970-01-01
    • 2019-02-06
    • 2018-11-28
    • 2019-10-14
    • 2022-11-10
    • 2020-11-29
    相关资源
    最近更新 更多