Updated types to include potential for other keys in AppOptions.#148
Updated types to include potential for other keys in AppOptions.#148hiranya911 merged 2 commits intofirebase:masterfrom
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. |
Discussion
Since the updates to Firebase Functions (firebase/firebase-functions#127, firebase/firebase-functions#138)
config()function, it seems theAppOptionstype 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().firebaseused to be of typeany).API Changes
Only changes to the type definitions.