简体   繁体   English

告诉 Typedoc 不要加载 Jasmine 注释

[英]Telling Typedoc Not to Load Jasmine Annotations

I'm getting this error in an Angular library project:我在 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.

Can we configure typedoc not to look at the Jasmine annotations?我们可以将 typedoc 配置为不查看 Jasmine 注释吗?

转到工作区项目并从package.json删除@types/jasmine并运行npm i解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM