UNPKG

@canguro/horse

Version:

Deliver your data to wherever you wish, when you wish and how you wish.

14 lines (9 loc) 330 B
import { AxiosInstance } from 'axios'; const axiosObjectMap: Record<string, AxiosInstance> = {}; export const add = (name: string, obj: AxiosInstance) => { axiosObjectMap[name] = obj; }; export const remove = (name: string) => { delete axiosObjectMap[name]; }; export const getAll = () => axiosObjectMap;