错误 TS6133:声明了“函数”,但从未读取其值

时间:2021-08-01 14:59:20

标签: typescript firebase google-cloud-functions tslint tsconfig

这个问题似乎与 error TS6133 重复,但就我而言,这似乎是一个误报,因为我在方法中使用了该变量,但它仍然抱怨。

enter image description here

在我的代码中,我使用了如下变量

import * as functions from "firebase-functions";
import * as admin from "firebase-admin";
import {DocumentReference, FieldValue, Timestamp}
  from "@google-cloud/firestore";

const app = admin.initializeApp();


exports.onMessageCreate = functions.firestore
    .document( // method body goes here
        

我已按如下方式修改了 tsconfig.json,但编译器在部署时仍然失败

enter image description here

0 个答案:

没有答案