Function: moduleTransformer
helpers.moduleTransformer
▸ moduleTransformer<T
>(module
): T
Transforming function that translates the redux internal dispatch actions into functions that are compatible with Providence's mutations. When Redux Dynamic Modules binds the mutations as reducers, the arguments aren't quite the same as our mutations expect, so we translate them here in a way that preserves the original typing elsewhere in the code.
Type parameters
Name | Type |
---|---|
T |
extends BaseModule <any , any , any > |
Parameters
Name | Type |
---|---|
module |
T |
Returns
T
Defined in
helpers.ts:9