shlink-web-client/src/api/utils/index.ts

5 lines
190 B
TypeScript
Raw Normal View History

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