@commercelayer/react-components
Version:
The Official Commerce Layer React Components
12 lines (11 loc) • 395 B
TypeScript
interface Context {
url: string | null;
callExternalFunction: CallExternalFunction;
}
type CallExternalFunction = (params: {
url: string;
data: Record<string, any>;
}) => Promise<Record<string, any>>;
export declare const callExternalFunction: CallExternalFunction;
declare const ExternalFunctionContext: import("react").Context<Context>;
export default ExternalFunctionContext;