UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the

18 lines (17 loc) 680 B
import { compose, Middleware as ReduxMiddleware } from 'redux'; import { buildMiddleware } from '../Middleware'; import { AppBridgeStore } from './reducers'; export * from './middlewares'; export * from './reducers'; export { setFeaturesAvailable } from './reducers/embeddedApp/features'; interface DevToolsOptions { name?: string; } declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: (options: DevToolsOptions) => typeof compose; } } export default function createStore(middlewares?: Array<ReturnType<typeof buildMiddleware> | ReduxMiddleware>): import("redux").Store<AppBridgeStore, import("redux").AnyAction> & { dispatch: {}; };