From c4d672683ca27bfd441efd37187536221cbf2887 Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Mon, 22 Aug 2022 11:37:42 +0200 Subject: [PATCH] Fix exports --- src/app-bridge/index.ts | 5 +++-- src/app-bridge/types.ts | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app-bridge/index.ts b/src/app-bridge/index.ts index 062b683..128b0ab 100644 --- a/src/app-bridge/index.ts +++ b/src/app-bridge/index.ts @@ -1,12 +1,13 @@ import { AppBridge } from "./app-bridge"; +export { AppBridge }; + export * from "./actions"; export * from "./events"; export * from "./types"; /** - * @deprecated avoid default functions in SDKs - * TODO: Expose AppBridge() + * @deprecated use new AppBridge() */ export const createApp = (targetDomain?: string) => new AppBridge(targetDomain); export default createApp; diff --git a/src/app-bridge/types.ts b/src/app-bridge/types.ts index 9be66a8..37c4fcb 100644 --- a/src/app-bridge/types.ts +++ b/src/app-bridge/types.ts @@ -1,5 +1,8 @@ import { AppBridge } from "./app-bridge"; import { AppBridgeState } from "./app-bridge-state"; -export type App = typeof AppBridge; +/** + * @deprecated Use AppBridge instead + */ +export type App = AppBridge; export { AppBridgeState };