@shopify/app-bridge-core
Version:
**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**
16 lines (15 loc) • 1.02 kB
TypeScript
import { Indexable } from './merge';
import { Component, Group, ActionSetInterface } from './types';
export declare function actionWrapper(action: any): any;
export declare const NonSnakeCaseGroup: Group[];
/**
* Returns full event name with prefix, group, subgroups and type formatted with separators
* @internal
* */
export declare function getEventNameSpace(group: string, eventName: string, component?: Component): string;
export declare function findMatchInEnum<E extends Indexable>(types: E, lookup: string): string | undefined;
export declare function getMergedProps<Prop extends Indexable>(props: Prop, newProps: Partial<Prop>): Prop;
export declare function forEachInEnum<E extends Indexable>(types: E, callback: (prop: string) => void): void;
export declare function isValidOptionalNumber(value?: number): boolean;
export declare function isValidOptionalString(value?: string): boolean;
export declare function updateActionFromPayload<A extends Partial<ActionSetInterface>>(action: A, newProps: A): boolean;