mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-19 18:23:17 +08:00
fix(analytics): ts logEvent params arg should be optional (#2822)
* Fix analytics log event params not optional when it should be * Update Flow analytics log event type not in sync
This commit is contained in:
committed by
Mike Diarmid
parent
4c19b9439d
commit
3b8757c0d4
2
packages/analytics/lib/index.d.ts
vendored
2
packages/analytics/lib/index.d.ts
vendored
@@ -670,7 +670,7 @@ export namespace FirebaseAnalyticsTypes {
|
||||
* @param name Event name must not conflict with any Reserved Events.
|
||||
* @param params Parameters to be sent and displayed with the event.
|
||||
*/
|
||||
logEvent(name: string, params: { [key: string]: string | number | boolean }): Promise<void>;
|
||||
logEvent(name: string, params?: { [key: string]: string | number | boolean } | {} ): Promise<void>;
|
||||
|
||||
/**
|
||||
* If true, allows the device to collect analytical data and send it to
|
||||
|
||||
@@ -623,7 +623,7 @@ export interface Module extends ReactNativeFirebaseModule {
|
||||
* @param name Event name must not conflict with any Reserved Events. 100 characters is the maximum length for param key names.
|
||||
* @param params Parameters to be sent and displayed with the event.
|
||||
*/
|
||||
logEvent(name: string, params: { [key: string]: string }): Promise<void>;
|
||||
logEvent(name: string, params?: { [key: string]: string | number | boolean } | {}): Promise<void>;
|
||||
|
||||
/**
|
||||
* If true, allows the device to collect analytical data and send it to Firebase.
|
||||
|
||||
Reference in New Issue
Block a user