Skip to content

Instantly share code, notes, and snippets.

@stepancar
Created March 17, 2016 09:19
Show Gist options
  • Save stepancar/9bc62ecf5a5368e59b96 to your computer and use it in GitHub Desktop.
Save stepancar/9bc62ecf5a5368e59b96 to your computer and use it in GitHub Desktop.
interface SyncAction {
type: any;
}
interface AsyncAction {
(dispatch: (action: SyncAction | AsyncAction)=> any, getState:()=> AppState): void
}
@stepancar
Copy link
Author

export function anyActionCreator(): AsyncAction{
return (dispatch, getState){

}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment