UNPKG

@shopify/app-bridge

Version:

**Shopify is doubling our engineering staff in 2021! [Join our team and work on libraries like this one.](https://smrtr.io/5GGrc)**

34 lines (33 loc) 775 B
import { ClientApplication } from '../../../client'; import { ActionSet } from '../../helper'; export declare enum Action { LOADING = "LOADING", LOADED = "LOADED" } export interface Options { readonly id?: string; } export interface ModalContentPayload extends Options { loading?: boolean; } /** * A set of Actions for updating the modal component * @public */ export declare class ModalContent extends ActionSet { constructor(app: ClientApplication<any>, options?: Options); loaded(): void; loading(): void; /** * @private */ private dispatch; /** * @internal */ private dispatchModalAction; } /** * @public */ export declare function create(app: ClientApplication<any>, options?: Options): ModalContent;