我正在尝试实现一个上传文件到Firebase存储的Vue Composable。 我正在使用模块化的Firebase版本9,并通过复制this example in their docs来实现它。但是这个例子使用了普通的JavaScript,我想用TypeScript实现它。在我下面的代码中,.on抛出了一个TypeScript错误,显示为Property 'on' does not exist on type 'Promise<<e
当像这样调用firebase可调用云函数时: const myFunctions = require('/path/to/functions/src/index.js');
console.log("THIS IS THE ACTUAL RESPONSE FROM CLOUD FUNCTION", r);
}) 我得到:属性'then‘在类型</e