src/context/storeContext/errorContext.ts
import { createContext } from 'react'
import type { ReactReduxContextValue } from 'react-redux'
import type { AppState } from 'domain/error/store/appState'
import type { Context } from 'react'
export const ErrorContext = createContext(null) as unknown as Context<
// Need any type for Action to allow Redux to dispatch async Thunks
// eslint-disable-next-line @typescript-eslint/no-explicit-any
ReactReduxContextValue<AppState, any>
>