Typescript 错误TS2554:应为1个参数,但得到2个

Typescript 错误TS2554:应为1个参数,但得到2个,typescript,Typescript,TypeScript编译器给了我以下错误: src/resources/billing/stripe billing service.ts(66,96):错误TS2554:应为1个参数,但得到2个 指的是这一行: const res = await HTMWorker.commonDBI.addCustomerToCache({...cust, cachedTime: new Date()}, customerAlreadyExistsinCache); 但是问题是函数addCustomer

TypeScript编译器给了我以下错误:

src/resources/billing/stripe billing service.ts(66,96):错误TS2554:应为1个参数,但得到2个

指的是这一行:

const res = await HTMWorker.commonDBI.addCustomerToCache({...cust, cachedTime: new Date()}, customerAlreadyExistsinCache); 
但是问题是函数
addCustomerToCache
接受两个参数这里是它的签名

async addCustomerToCache(customer, updateAlreadyCachedCustomer = true) {
所以我的问题是为什么类型脚本给了我错误的错误,我如何才能消除这个错误

我们将非常感谢您在这方面提供的任何帮助

提前谢谢