-
Notifications
You must be signed in to change notification settings - Fork 982
Fixed Generic type Observer #788
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
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed the CLA! |
CLAs look good, thanks! |
Hey @paulstelzer, thanks so much for the quick triage and the PR I think we are going to roll this change into #786 (facilitating both the single and multi-generic syntaxes). |
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.
I take that back 👍 this looks great! Thanks again!
This change introduced a bug I think
|
@mparpaillon with [email protected] the observer only has 1 type argument, 2 type arguments was before - so I think you not updated firebase correctly. Could you please install again? |
Hmmm that's odd. I've reinstalled it and still got the "@firebase/[email protected]" in which the Observer requires 2 arguments // subscribe.d.ts
export interface Observer<V, E> {
next(value: V | null): any;
error(error: E): any;
complete(): any;
} In my package.json I have It's an Angular project (6.0.2). I use angularfire2 (5.0.0-rc.9). Something I did wrong ? |
I looked at ...
"_id": "[email protected]",
...
"dependencies": {
"@firebase/app": "0.3.3",
"@firebase/auth": "0.5.3",
"@firebase/database": "0.3.3",
"@firebase/firestore": "0.5.4",
"@firebase/functions": "0.2.4",
"@firebase/messaging": "0.3.4",
"@firebase/polyfill": "0.3.3",
"@firebase/storage": "0.2.3"
} No @firebase/util. Is that normal ? |
@mparpaillon The latest version is It's normal that there is no |
Well it doesn't work. I guess a package is installing firebase with older dependencies. In Apparently the old one is used... I don't know why |
Generic type 'Observer' requires 1 type argument(s). Fix #787