Fix exports
This commit is contained in:
parent
d445653c2d
commit
c4d672683c
2 changed files with 7 additions and 3 deletions
|
@ -1,12 +1,13 @@
|
||||||
import { AppBridge } from "./app-bridge";
|
import { AppBridge } from "./app-bridge";
|
||||||
|
|
||||||
|
export { AppBridge };
|
||||||
|
|
||||||
export * from "./actions";
|
export * from "./actions";
|
||||||
export * from "./events";
|
export * from "./events";
|
||||||
export * from "./types";
|
export * from "./types";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated avoid default functions in SDKs
|
* @deprecated use new AppBridge()
|
||||||
* TODO: Expose AppBridge()
|
|
||||||
*/
|
*/
|
||||||
export const createApp = (targetDomain?: string) => new AppBridge(targetDomain);
|
export const createApp = (targetDomain?: string) => new AppBridge(targetDomain);
|
||||||
export default createApp;
|
export default createApp;
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
import { AppBridge } from "./app-bridge";
|
import { AppBridge } from "./app-bridge";
|
||||||
import { AppBridgeState } from "./app-bridge-state";
|
import { AppBridgeState } from "./app-bridge-state";
|
||||||
|
|
||||||
export type App = typeof AppBridge;
|
/**
|
||||||
|
* @deprecated Use AppBridge instead
|
||||||
|
*/
|
||||||
|
export type App = AppBridge;
|
||||||
export { AppBridgeState };
|
export { AppBridgeState };
|
||||||
|
|
Loading…
Reference in a new issue