@wordpress/redux-routine
Version:
Redux middleware for generator coroutines.
20 lines • 652 B
TypeScript
import type { Action } from 'redux';
/**
* Returns true if the given object quacks like an action.
*
* @param object Object to test
*
* @return Whether object is an action.
*/
export declare function isAction(object: unknown): object is Action;
/**
* Returns true if the given object quacks like an action and has a specific
* action type
*
* @param object Object to test
* @param expectedType The expected type for the action.
*
* @return Whether object is an action and is of specific type.
*/
export declare function isActionOfType(object: unknown, expectedType: string): object is Action;
//# sourceMappingURL=is-action.d.ts.map