告诉 Typedoc 不要加载 Jasmine 注释
Telling Typedoc Not to Load Jasmine Annotations
我在 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 注释吗?
转到工作区项目并从 package.json
和 运行 中删除 @types/jasmine
npm i
解决了问题。
我在 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 注释吗?
转到工作区项目并从 package.json
和 运行 中删除 @types/jasmine
npm i
解决了问题。