Comments (4)
Hey @jernkuan , are you developing with TypeScript or JavaScript? If you are developing with JavaScript, then you can already use event.data.resourceState with v0.5.2. The field is already populated, we just didn't have export a typing for it yet.
Here's how to use the latest SDK directly from Github:
- Inside projectDirectory/functions, run:
git clone https://github.com/firebase/firebase-functions.git
cd firebase-functions
npm run build
- Modify the firebase-functions dependency inside functions/package.json to be:
"firebase-functions": "file:./firebase-functions"
- Run
npm install
inside projectDirectory/functions
from firebase-functions.
Working with typescript and compiler throwing an error with the resourceState thus the need to use the latest from github. I think your suggestion would work.
Thanxs and closing
from firebase-functions.
Ok, no probs!
from firebase-functions.
FYI that it's generally not the best practice to always point to the latest master
instead of the latest release. It could cause unexpected issues if we happen to merge a breaking change into master
. If you want to get the current release to work in TypeScript, you can just do (object as any).resourceType
to get rid of the TypeScript warning.
from firebase-functions.
Related Issues (20)
- Function execution took 58984 ms, finished with status: 'timeout' HOT 2
- [Firestore] Error: 4 DEADLINE_EXCEEDED: Deadline exceeded HOT 1
- HTTPS Request returns CORS errors even with the domain added as allowed origin HOT 4
- How to deploy function with latest secrets at RUNTIME? HOT 2
- DocumentOptions do not allow parameterized configuration values HOT 2
- Various Firebase functions started reporting crash: Maximum call stack size exceeded HOT 10
- regression with firebase-functions-test wrapping a v1 scheduled function HOT 2
- Please move `node-fetch` as a `devDependency` HOT 1
- `getDownloadURL` function fails in emulator mode if storage rules are not allowed HOT 3
- Consider exporting `SecretParam` type HOT 3
- CORS error when calling v2 functions using onCall HOT 3
- CallableOptions doesn't accept BooleanParam which is accepted by HttpsOptions HOT 2
- Structured logging error context not being serialized HOT 3
- Don't verify auth token on public endpoints HOT 5
- Firebase Blocking Auth Functions Run Incorrectly on Failed Signup HOT 2
- Module '"firebase-functions/v1"' has no exported member 'onInit'. HOT 5
- Single CORS origin ignored for `onCall` HOT 1
- Auth onCreate trigger doesn't trigger in emulators with magic link sign in flow HOT 2
- Firebase Functions v2 missing labels for documentOnwritten HOT 3
- defineSecret creates a list of values in Secret Manager HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-functions.