src/domain/error/usecase/clear-errors/clearErrors.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ThunkResult } from 'domain/error/store/store'
import { ClearErrorsActions } from './actionCreators'

export const clearErrors =
  (): ThunkResult<Promise<void>> =>
  // eslint-disable-next-line @typescript-eslint/typedef
  async dispatch => {
    dispatch(ClearErrorsActions.errorsCleared())
  }