Relatively new to using typescript let alone Visual Studio. I'm trying to get the after, before, and timestamp after an onWrite is triggered but it doesn't deploy with the error being on helloWorld function. I used the guide that is on the Firebase YT channel and the hello world triggered by http worked properly.
I'm sure it's obvious but anyone care to help D:?
import * as functions from 'firebase-functions';
// // Start writing Firebase Functions
// // https://firebase.google.com/docs/functions/typescript
//
export const helloWorld =
functions.firestore.document("TestDoc").onWrite ((change, context) => {
console.log(change.after)
console.log(change.before)
console.log(context.timestamp)
});
Error: HTTP Error: 400, The request has errors
Functions deploy had errors with the following functions: helloWorld