UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains components and middleware to be consumed by the app's host, as well as the host itself. The middleware and `Frame` component are responsible for facilitating communication between the client and host, and used to act on actions se

21 lines (20 loc) 840 B
import { AnyAction } from 'redux'; import { LeaveConfirmation as LeaveConfirmationActions } from '@shopify/app-bridge-core/actions'; import type { Feature } from '../../withFeature'; export type Store = { readonly id?: string; } | null; export interface WithFeature { actions: { enable: typeof LeaveConfirmationActions.enable; disable: typeof LeaveConfirmationActions.disable; confirm: typeof LeaveConfirmationActions.confirm; }; store: Store; } export declare function reducer(state: Store | undefined, action: LeaveConfirmationActions.EnableAction | LeaveConfirmationActions.DisableAction | LeaveConfirmationActions.ConfirmAction | AnyAction): { readonly id?: string | undefined; } | { id: any; } | null; export declare const feature: Feature<WithFeature['store'], WithFeature['actions']>;