我正在编辑TypeScript文件,而Promise不是由TypeScript编译器或Visual代码找到的。* @param onrejected The callback to execute when the Promise is rejected.: (value: T) => TResult | PromiseLike<TResult>,var Promise : Pr
我正在尝试实现一个上传文件到Firebase存储的Vue Composable。 我正在使用模块化的Firebase版本9,并通过复制this example in their docs来实现它。但是这个例子使用了普通的JavaScript,我想用TypeScript实现它。在我下面的代码中,.on抛出了一个TypeScript错误,显示为Property 'on' does not exist on type 'Promise<UploadResult>