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

19 lines (18 loc) 700 B
import { Action as BaseAction } from 'redux'; import { Group, Features } from '@shopify/app-bridge/actions'; import { FeaturesState } from '@shopify/app-bridge'; export interface UpdateAction extends BaseAction { readonly type: typeof Features.ActionType.UPDATE; readonly payload: FeaturesState; } export interface LegacyFeaturesAction { [key: string]: boolean; } export declare type LegacyFeaturesAvailable = { [key in Group]?: LegacyFeaturesAction; }; export interface LegacyUpdateAction extends BaseAction { readonly type: typeof Features.ActionType.UPDATE; readonly payload: LegacyFeaturesAvailable; } export declare function update(payload: FeaturesState): UpdateAction;