Type Alias EffectCleanup<D, V>

EffectCleanup<D, V>: ((params: EffectCleanupParams<D, V>) => void | {
    [UNDEFINED_VOID_ONLY]: never;
})

The type of cleanup function for the effect.

Type Parameters

  • D

    The type of the state machine definition.

  • V

    The type of state value.

Type declaration

    • (params): void | {
          [UNDEFINED_VOID_ONLY]: never;
      }
    • The cleanup function for the effect.

      Parameters

      Returns void | {
          [UNDEFINED_VOID_ONLY]: never;
      }

      void or a cleanup function.