UNPKG

824 BTypeScriptView Raw
1import * as actions from './actions';
2export { actions };
3import { AppConfig, ClientApplication } from './client/types';
4/**
5 * Creates your application instance with validator middleware.
6 * @param config - Both `apiKey` and `shopOrigin` are required.
7 * @remarks
8 * Please note that `forceRedirect` only works in production environment (`shopname.myshopify.com/admin`).
9 * You will need to store `shopOrigin` during the authentication process and then retrieve it for the code
10 * to work properly. To learn more about this process, see
11 * {@link https://help.shopify.com/api/embedded-apps/shop-origin | Getting and storing the shop origin}.
12 * @public
13 */
14export declare function createApp(config: AppConfig): ClientApplication<any>;
15export default createApp;
16export * from './MessageTransport';
17export * from './client';