2020-12-21 23:51:35 +01:00
|
|
|
import { AxiosError } from 'axios';
|
2020-12-22 09:24:33 +01:00
|
|
|
import { ProblemDetailsError } from '../../utils/services/types';
|
2020-12-21 23:51:35 +01:00
|
|
|
|
|
|
|
export const parseApiError = (e: AxiosError<ProblemDetailsError>) => e.response?.data;
|