Skip to content

Commit 0edf096

Browse files
committed
export types from app, rc and fcm
1 parent d16e7c2 commit 0edf096

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

packages-exp/app-exp/src/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,5 @@ export function onLog(
303303
export function setLogLevel(logLevel: LogLevelString): void {
304304
setLogLevelImpl(logLevel);
305305
}
306+
307+
export { FirebaseApp, FirebaseAppConfig, FirebaseOptions };

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,8 @@
2323
*/
2424

2525
import { registerCoreComponents } from './registerCoreComponents';
26-
import {
27-
FirebaseApp,
28-
FirebaseAppConfig,
29-
FirebaseOptions
30-
} from '@firebase/app-types-exp';
3126

3227
export * from './api';
3328
export * from './internal';
34-
export { FirebaseApp, FirebaseAppConfig, FirebaseOptions };
3529

3630
registerCoreComponents();

packages-exp/messaging-exp/src/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,5 @@ export function onBackgroundMessage(
126126
): Unsubscribe {
127127
return _onBackgroundMessage(messaging as MessagingService, nextOrObserver);
128128
}
129+
130+
export { FirebaseMessaging, MessagePayload };

packages-exp/messaging-types-exp/index.d.ts

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,29 @@
1515
* limitations under the License.
1616
*/
1717

18-
// Currently supported fcm notification display parameters. Note that
19-
// {@link https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications/NotificationOptions}
20-
// defines a full list of display notification parameters. This interface we only include what the
21-
// SEND API support for clarity.
18+
/**
19+
* Currently supported fcm notification display parameters. Note that
20+
* {@link https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications/NotificationOptions}
21+
* defines a full list of display notification parameters. This interface we only include what the
22+
* SEND API support for clarity.
23+
*/
2224
export interface NotificationPayload {
2325
title?: string;
2426
body?: string;
2527
image?: string;
2628
}
2729

30+
/**
31+
* @public
32+
*/
2833
export interface FcmOptions {
2934
link?: string;
3035
analyticsLabel?: string;
3136
}
3237

38+
/**
39+
* @public
40+
*/
3341
export interface MessagePayload {
3442
notification?: NotificationPayload;
3543
data?: { [key: string]: string };
@@ -38,9 +46,15 @@ export interface MessagePayload {
3846
collapseKey: string;
3947
}
4048

49+
/**
50+
* @public
51+
*/
4152
export interface FirebaseMessaging {}
4253

43-
export type FirebaseMessagingName = 'messaging';
54+
/**
55+
* @internal
56+
*/
57+
export type _FirebaseMessagingName = 'messaging';
4458

4559
declare module '@firebase/component' {
4660
interface NameServiceMapping {

packages-exp/remote-config-exp/src/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,5 @@ export function setLogLevel(
257257
function getAllKeys(obj1: {} = {}, obj2: {} = {}): string[] {
258258
return Object.keys({ ...obj1, ...obj2 });
259259
}
260+
261+
export { RemoteConfig, ValueType, RemoteConfigLogLevel };

0 commit comments

Comments
 (0)