import { ActionCreator , AnyAction } from 'typescript-fsa' ; /**
 * Infers the type of an action out of a given action type.
 * This makes it easier to distribute the action types because they come
 * along with the creators: `type MyAction = InferActionType<typeof myActionCreator>`.
 *
 * This isn't expected to be used in a lot of places - if it is, naming the individual
 * action types might make more sense.
 */ export type InferActionType < X > = X extends ActionCreator < infer T > ? T : never ; param actionCreators export const matchesOne = ( ... actionCreators ) => ( action ) => actionCreators . some ( ( actionCreator ) => actionCreator . match ( action ) ) ;