@woocommerce/data
Version:
WooCommerce Admin data store and utilities
32 lines • 1.12 kB
TypeScript
import { ReviewObject, ReviewsQueryParams } from './types';
export declare function getReviews(query: ReviewsQueryParams): Generator<(import("redux").AnyAction & {
options: import("@wordpress/api-fetch/build-types/types").APIFetchOptions;
}) | {
type: "SET_ERROR";
query: string | ReviewsQueryParams;
error: unknown;
} | {
type: "UPDATE_REVIEWS";
reviews: import("./types").ReviewObjectUpdate[];
query: ReviewsQueryParams;
totalCount: number;
}, void, {
headers: Map<string, string>;
data: Array<ReviewObject>;
}>;
export declare function getReviewsTotalCount(query: ReviewsQueryParams): Generator<Generator<(import("redux").AnyAction & {
options: import("@wordpress/api-fetch/build-types/types").APIFetchOptions;
}) | {
type: "SET_ERROR";
query: string | ReviewsQueryParams;
error: unknown;
} | {
type: "UPDATE_REVIEWS";
reviews: import("./types").ReviewObjectUpdate[];
query: ReviewsQueryParams;
totalCount: number;
}, void, {
headers: Map<string, string>;
data: ReviewObject[];
}>, void, unknown>;
//# sourceMappingURL=resolvers.d.ts.map