import { Context } from "./context" ; import { AxiosInstance } from "axios" ; export class Rest { private _instance : AxiosInstance ; constructor ( private _context ) { this . _instance = _context . get ( "restInstance" ) ; } public get context ( ) : Context { return this . _context ; } public get instance ( ) : AxiosInstance { return this . _instance ; } }