生产部署期间的Dexie.js typeerror

时间:2020-07-17 08:49:57

标签: node.js angular dexie

我刚安装了dexie.js,在AOT编译过程中,我把这个错误排除在了dexie的nodejs文件上,可能是我在安装过程中犯了一个错误吗?

The types of 'all(...).then(...).then' are incompatible between these types.
Type '<TResult1 = any, TResult2 = never>(onfulfilled?: (value: any) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseExtended<...>' is not assignable to type '{ <TResult1 = any, TResult2 = never>(onfulfilled?: (value: any) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<...>; <TResult1 = any, TResult2 = never>(onfulfilled?: (value: any, extraParameters: any) => TResult1 | PromiseLike<...>, onrejected?: (reason:...'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.ts(2430)```

0 个答案:

没有答案