import { DAFF_REVIEWS_ERROR_MATCHER } from '@daffodil/reviews/state'
Transforms DaffError
s into DaffStateError
s before they are serialized into state.
Can be used to further refine Daffodil errors into more specific app errors.
const DAFF_REVIEWS_ERROR_MATCHER: InjectionToken<({ code, message, recoverable }: DaffError) => DaffStateError>