我最近一直在尝试在NodeJS和Typescript上使用Promise.allSettled,但我遇到了响应问题。问题是,当我试图访问响应的值时,我得到了以下错误: Property 'value' does not exist on type 'PromiseSettledResult<unknown>'.const p1 = Promise.resolve(50);
const
我有一个操作,它使用Promise.allSettled从一个API返回多个stat对象。当我使用mocking运行测试时,我得到了错误Promise.allSettled is not a function types.forEach(type => api().stats.getStats(type), );
Promise.allSett