UNPKG

@wordpress/hooks

Version:
23 lines 592 B
import type { Hooks, StoreKey } from './types'; /** * * Returns the number of times an action has been fired. * */ export type DidHook = ( /** * The hook name to check. */ hookName: string) => number | undefined; /** * Returns a function which, when invoked, will return the number of times a * hook has been called. * * @param hooks Hooks instance. * @param storeKey * * @return Function that returns a hook's call count. */ declare function createDidHook(hooks: Hooks, storeKey: StoreKey): DidHook; export default createDidHook; //# sourceMappingURL=createDidHook.d.ts.map