Skip to content

Instantly share code, notes, and snippets.

@quicksnap
Last active January 16, 2018 00:56
Show Gist options
  • Save quicksnap/d44a363b46cb71912bc319f19487a4fc to your computer and use it in GitHub Desktop.
Save quicksnap/d44a363b46cb71912bc319f19487a4fc to your computer and use it in GitHub Desktop.
export function isPackAction<IAppState, T, M>(
action: Action,
actionCreator: IActionType<
(...args: any[]) => { meta?: M; promise: Promise<T> }
>,
): action is PackAction<IAppState, T, {}, {}, M> {
return `PACK_${action.type}` === actionCreator.__actionType;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment