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)**

25 lines (24 loc) 847 B
import { ClientApplication } from '../../../client'; import { ActionSet } from '../../helper'; import { ComplexDispatch, MetaAction } from '../../types'; export declare enum Action { PUSH = "APP::NAVIGATION::HISTORY::PUSH", REPLACE = "APP::NAVIGATION::HISTORY::REPLACE" } export interface Payload { id?: string; path: string; } export interface HistoryAction extends MetaAction { payload: Payload; } export declare function push(payload: Payload): HistoryAction; export declare function replace(payload: Payload): HistoryAction; export declare class History extends ActionSet implements ComplexDispatch<string> { constructor(app: ClientApplication<any>); get payload(): { id: string; }; dispatch(type: Action, path: string): this; } export declare function create(app: ClientApplication<any>): History;