-
Notifications
You must be signed in to change notification settings - Fork 934
Implement analytics-compat package #4460
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
|
*/ | ||
|
||
import { firebase } from '@firebase/app-compat'; | ||
import { _FirebaseNamespace } from '@firebase/app-types/private'; |
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.
FYI, we may have merge conflict with #4461 depending on which one got merged first.
@@ -226,7 +229,11 @@ export function factory( | |||
app, | |||
// Public methods return void for API simplicity and to better match gtag, | |||
// while internal implementations return promises. | |||
logEvent: (eventName, eventParams, options) => { | |||
logEvent: ( | |||
eventName: string, |
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.
Is it necessary to type them explicitly? Are they not inferred by FirebaseAnalyticsInternal
?
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.
It used to be fine but after adding the logEvent overloads to analytics-types now it complains if the params aren't typed?
632cabe
to
6304140
Compare
c0f2a28
to
166c3dd
Compare
Create analytics-compat package wrapping analytics-exp. Did not add to
firebase
package - doesn't seem like most compat packages have been added to it yet.