Skip to content

Instantly share code, notes, and snippets.

View gluhovroma's full-sized avatar
🕶️
hack you

Glukhov Roman gluhovroma

🕶️
hack you
View GitHub Profile
import ErrorMessages from '../constants/messages';
import { RootState } from '../index';
import axios, {AxiosInstance, AxiosResponse, AxiosError, AxiosRequestConfig} from 'axios';
export default class HttpProvider {
private client: AxiosInstance;
getState: () => RootState;
constructor() {
this.client = axios.create({