Skip to content

@opencraft/providence-redux


Function: moduleTransformer()

moduleTransformer\<T>(module): T

Defined in: helpers.ts:9

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

T

T extends BaseModule\<any, any, any>

Parameters

module

T

Returns

T