@woocommerce/data
Version:
WooCommerce Admin data store and utilities
12 lines • 362 B
TypeScript
import { WCUser } from './types';
/**
* Custom react hook for shortcut methods around user.
*
* This is a wrapper around @wordpress/core-data's getCurrentUser().
*/
export declare const useUser: () => {
currentUserCan: (capability: string) => boolean;
user: WCUser<"capabilities">;
isRequesting: unknown;
};
//# sourceMappingURL=use-user.d.ts.map