Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created July 5, 2016 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/fac513fba004af6c81b67f3e50d48098 to your computer and use it in GitHub Desktop.
Save tmcw/fac513fba004af6c81b67f3e50d48098 to your computer and use it in GitHub Desktop.
module.exports = function makeActions(source) {
var MapstateActionCreators = {
clean: function(): Object {
return {
type: MapStateConstants.MAPSTATE_CLEAN,
source
};
},
zoomIn: function(): Object {
return {
type: MapStateConstants.MAPSTATE_ZOOM_IN,
source
};
}
};
return MapStateConstants;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment