@woocommerce/data
Version:
WooCommerce Admin data store and utilities
9 lines • 506 B
TypeScript
/// <reference types="react" />
import { WCUser } from './types';
/**
* Higher-order component used to hydrate current user data.
*
* @param {Object} currentUser Current user object in the same format as the WP REST API returns.
*/
export declare const withCurrentUserHydration: (currentUser: WCUser) => <InnerProps extends Record<string, unknown>>(Inner: import("react").ComponentType<InnerProps>) => import("react").ComponentType<InnerProps>;
//# sourceMappingURL=with-current-user-hydration.d.ts.map