UNPKG

@shopify/app-bridge-core

Version:

**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**

21 lines (20 loc) 690 B
import { ClientApplication } from '../../client/types'; import { ActionSet } from '../ActionSet'; import { ActionSetPayload, MetaAction } from '../types'; export declare enum Action { START = "APP::LOADING::START", STOP = "APP::LOADING::STOP" } export interface Payload { readonly id?: string; } export type LoadingAction = MetaAction; export declare function start(payload?: Payload): LoadingAction; export declare function stop(payload?: Payload): LoadingAction; export declare class Loading extends ActionSet implements ActionSetPayload<Payload> { constructor(app: ClientApplication); get payload(): { id: string; }; dispatch(action: Action): this; }