-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated types to include potential for other keys in AppOptions. #148
Conversation
Thanks @bmass02 for the PR. @laurenzlong @bojeil-google any thoughts on how this should be handled? |
@hiranya911 Interesting. I currently use |
@bmass02 Thanks for clarifying. @laurenzlong What does Functions SDK use |
@hiranya911 authDomain not actually used for anything (I had mistakenly thought that it was used by the admin SDK, but it turns out I got it confused with the client SDKs). One can argue that it should be removed from |
@bmass02 What do you mean by "links to the correctly deployed project"? |
I don't see any current need for |
I have different Firebase projects for different environments, so I use the |
Thanks all for the input. @bmass02 if you can drop @laurenzlong I'll create an issue to remove |
Great thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Discussion
Since the updates to Firebase Functions (firebase/firebase-functions#127, firebase/firebase-functions#138)
config()
function, it seems theAppOptions
type needs to be updated to correctly reflect what keys might be present on the object. I might be missing some (not sure exactly what keys might be present), but I added those that I've used previously (worked previously becauseconfig().firebase
used to be of typeany
).API Changes
Only changes to the type definitions.