import { IFetchOptions , ISoFetchInitialisation } from './interfaces' ; import SoFetchResponse from './response' ; import SoFetch from './so-fetch' ; export interface IDefaultFetchResponse { [ x ] : any ; } const defaultFetch = < T = IDefaultFetchResponse > ( url , options = { } ) : Promise < SoFetchResponse < T > > => new SoFetch < T > ( { } ) . fetch ( url , options ) ; const makeFetchClient = < T > ( args ) : SoFetch < T > => new SoFetch < T > ( args ) ; export { makeFetchClient , SoFetchResponse } ; export default defaultFetch ;