【问题标题】:Telling Typedoc Not to Load Jasmine Annotations告诉 Typedoc 不要加载 Jasmine 注释
【发布时间】:2020-03-04 04:44:06
【问题描述】:

我在 Angular 库项目中遇到此错误:

Using TypeScript 3.7.5 from /home/ole/Github/validatorjs-workspace/projects/validatorjs/node_modules/typescript/lib
Error: /home/ole/Github/validatorjs-workspace/node_modules/@types/jasmine/ts3.1/index.d.ts(20)
 Definitions of the following identifiers conflict with those in another file: beforeAll, beforeEach, afterAll, afterEach, describe, fdescribe, xdescribe, it, fit, xit, expect, DEFAULT_TIMEOUT_INTERVAL, CustomMatcherFactory, CustomEqualityTester
Error: /home/ole/Github/validatorjs-workspace/node_modules/@types/jasmine/ts3.1/index.d.ts(308)
 All declarations of 'ArrayContaining' must have identical type parameters.
Error: /home/ole/Github/validatorjs-workspace/node_modules/@types/jasmine/ts3.1/index.d.ts(312)
 All declarations of 'ObjectContaining' must have identical type parameters.
Error: /home/ole/Github/validatorjs-workspace/node_modules/@types/jasmine/ts3.1/index.d.ts(359)
 All declarations of 'message' must have identical modifiers.

我们可以配置 typedoc 不查看 Jasmine 注释吗?

【问题讨论】:

    标签: node.js angular typescript jasmine typedoc


    【解决方案1】:

    进入工作区项目并从package.json 中删除@types/jasmine 并运行npm i 可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-05
      • 2017-07-27
      • 1970-01-01
      • 2018-08-05
      • 1970-01-01
      • 2012-08-20
      • 2011-03-13
      • 1970-01-01
      相关资源
      最近更新 更多