Skip to content

Commit 4bb72b6

Browse files
authored
Fix analytics type export (#4327)
1 parent b6ff547 commit 4bb72b6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

packages-exp/analytics-exp/src/index.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ import {
2727
import { ERROR_FACTORY, AnalyticsError } from './errors';
2828
import { logEvent } from './api';
2929
import { name, version } from '../package.json';
30-
import { AnalyticsCallOptions } from '@firebase/analytics-types-exp';
30+
31+
import {
32+
Analytics,
33+
AnalyticsCallOptions,
34+
SettingsOptions,
35+
ControlParams,
36+
EventParams,
37+
CustomParams,
38+
Item,
39+
Promotion
40+
} from '@firebase/analytics-types-exp';
3141

3242
declare global {
3343
interface Window {
@@ -81,14 +91,15 @@ function registerAnalytics(): void {
8191
registerAnalytics();
8292

8393
export * from './api';
84-
85-
export type {
94+
/**
95+
* Public types.
96+
*/
97+
export {
8698
Analytics,
87-
AnalyticsCallOptions,
8899
SettingsOptions,
89100
ControlParams,
90101
EventParams,
91102
CustomParams,
92103
Item,
93104
Promotion
94-
} from '@firebase/analytics-types-exp';
105+
};

0 commit comments

Comments
 (0)