我正在尝试通过模拟函数扩展旧版本的@ angular / types
declare module 'angular' {
interface IAngularStatic {
mock: IMockStatic;
}
}
describe('Date Picker', () => {
beforeEach(() => {
angular.mock.module('activitiApp');
但是我仍然收到错误:
类型“ IAngularStatic”上不存在属性“模拟”