UNPKG

@shopify/app-bridge

Version:

[![Build Status](https://travis-ci.com/Shopify/app-bridge.svg?token=RBRyvqQyN525bnfz7J8p&branch=master)](https://travis-ci.com/Shopify/app-bridge) [![codecov](https://codecov.io/gh/Shopify/app-bridge/branch/master/graph/badge.svg?token=nZ21m39Dr6)](https:

23 lines (22 loc) 875 B
/** * @module History */ import { ClientApplication } from '../../../client'; import { ActionSet } from '../../helper'; import { ComplexDispatch, MetaAction } from '../../types'; import { ErrorAction } from '../../Error'; import { Action, Payload } from './types'; export interface HistoryAction extends MetaAction { payload: Payload; } export declare function push(payload: Payload): HistoryAction; export declare function replace(payload: Payload): HistoryAction; export declare function validationError(action: HistoryAction | MetaAction): undefined | ErrorAction; export declare class History extends ActionSet implements ComplexDispatch<string> { constructor(app: ClientApplication<any>); readonly payload: { id: string; }; dispatch(type: Action, path: string): this; } export declare function create(app: ClientApplication<any>): History;