Coder Social home page Coder Social logo

Comments (4)

laurenzlong avatar laurenzlong commented on June 1, 2024

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:

  1. Inside projectDirectory/functions, run:
git clone https://github.com/firebase/firebase-functions.git
cd firebase-functions
npm run build
  1. Modify the firebase-functions dependency inside functions/package.json to be:
    "firebase-functions": "file:./firebase-functions"
  2. Run npm install inside projectDirectory/functions

from firebase-functions.

jernkuan avatar jernkuan commented on June 1, 2024

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.

laurenzlong avatar laurenzlong commented on June 1, 2024

Ok, no probs!

from firebase-functions.

jwngr avatar jwngr commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.