Skip to content

Commit

Permalink
refactor(types/actions): remove AsyncAction
Browse files Browse the repository at this point in the history
is not longer needed since everything is handle on meta properties

improves #34
  • Loading branch information
aneurysmjs committed Sep 29, 2019
1 parent cfbafeb commit e098a69
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/app/shared/types/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,8 @@
import type { CartActionType } from '@/shared/types/CartType';
import type { FooterActionType } from '@/shared/types/FooterType';
import type { ProductActionType } from '@/shared/types/ProductsType';
import type { State } from '@/shared/types/State';

export type Actions =
CartActionType |
FooterActionType |
ProductActionType;

export type AsyncAction = {
type: string,
payload?: *,
meta?: {
types: Array<string>,
callAPI: () => Promise<*>,
shouldCallAPI?: (State) => boolean,
}
};

0 comments on commit e098a69

Please sign in to comment.