diff --git a/packages/analytics/lib/index.d.ts b/packages/analytics/lib/index.d.ts index f6dd6b24..f92849cd 100644 --- a/packages/analytics/lib/index.d.ts +++ b/packages/analytics/lib/index.d.ts @@ -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; + logEvent(name: string, params?: { [key: string]: string | number | boolean } | {} ): Promise; /** * If true, allows the device to collect analytical data and send it to diff --git a/packages/analytics/lib/index.js.flow b/packages/analytics/lib/index.js.flow index 303015aa..08a31a47 100644 --- a/packages/analytics/lib/index.js.flow +++ b/packages/analytics/lib/index.js.flow @@ -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; + logEvent(name: string, params?: { [key: string]: string | number | boolean } | {}): Promise; /** * If true, allows the device to collect analytical data and send it to Firebase.