bindEffects
bindEffects<
EffectsConfig
,Exhaustive
>(machine
: {effect
: (val
:any
) =>void
; },getEffects
: (state
:any
) =>undefined
|EffectMatchbox
[],matchers
:MatchCases
<EffectsConfig
,any
,Exhaustive
>,exhaustive
:Exhaustive
):DisposeFunc
Defined in: extras/bind-effects.ts:7
Type Parameters
Section titled “Type Parameters”Type Parameter | Default type |
---|---|
EffectsConfig extends TaggedTypes | - |
Exhaustive extends boolean | false |
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
machine | { effect : (val : any ) => void ; } |
machine.effect | (val : any ) => void |
getEffects | (state : any ) => undefined | EffectMatchbox [] |
matchers | MatchCases <EffectsConfig , any , Exhaustive > |
exhaustive | Exhaustive |