@woocommerce/data
Version:
WooCommerce Admin data store and utilities
49 lines • 1.55 kB
TypeScript
/**
* Internal dependencies
*/
import { FetchWithHeadersResponse } from '../controls';
import { SelectorArgs, ExportArgs } from './types';
export declare function setExportId(exportType: string, exportArgs: ExportArgs, exportId: string): {
type: "SET_EXPORT_ID";
exportType: string;
exportArgs: ExportArgs;
exportId: string;
};
export declare function setIsRequesting(selector: string, selectorArgs: SelectorArgs, isRequesting: boolean): {
type: "SET_IS_REQUESTING";
selector: string;
selectorArgs: SelectorArgs;
isRequesting: boolean;
};
export declare function setError(selector: string, selectorArgs: SelectorArgs, error: unknown): {
type: "SET_ERROR";
selector: string;
selectorArgs: SelectorArgs;
error: unknown;
};
export declare function startExport(type: string, args: ExportArgs): Generator<(import("redux").AnyAction & {
options: import("@wordpress/api-fetch/build-types/types").APIFetchOptions;
}) | {
type: "SET_EXPORT_ID";
exportType: string;
exportArgs: ExportArgs;
exportId: string;
} | {
type: "SET_IS_REQUESTING";
selector: string;
selectorArgs: SelectorArgs;
isRequesting: boolean;
} | {
type: "SET_ERROR";
selector: string;
selectorArgs: SelectorArgs;
error: unknown;
}, {
export_id: string;
message: string;
}, FetchWithHeadersResponse<{
export_id: string;
message: string;
}>>;
export type Action = ReturnType<typeof setExportId | typeof setError | typeof setIsRequesting>;
//# sourceMappingURL=actions.d.ts.map