UNPKG

oo-redux-utils

Version:

Utility functions for Object-oriented Redux

1 lines 833 B
{"version":3,"sources":["../src/DispatchUtils.js"],"names":["DispatchUtils","dispatch","action","type"],"mappings":";;;;;;;AAEA;;AACA;;;;;;;;;;;;;;IAQqBA,a;;;;;;;;;2CACWC,Q,EAAoC;AAChE,aAAO,UAASC,MAAT,EAA2C;AAChDD,QAAAA,QAAQ,CAAC;AAAEE,UAAAA,IAAI,EAAED;AAAR,SAAD,CAAR;AACD,OAFD;AAGD","sourcesContent":["// @flow\n\nimport * as React from 'react';\nimport AbstractAction from './AbstractAction';\nimport type { Dispatch } from './Dispatch';\n\nexport type DispatchAction = (AbstractAction<any, any>) => void;\nexport type DispatchActionWrapper = {\n dispatchAction: DispatchAction\n}\n\nexport default class DispatchUtils {\n static createActionDispatcher(dispatch: Dispatch): DispatchAction {\n return function(action: AbstractAction<any, any>) {\n dispatch({ type: action });\n };\n }\n}\n"],"file":"DispatchUtils.js"}