packageDocumentation import axios , { AxiosStatic } from "axios" ; param baseURL param timeout export function init ( baseURL ? , timeout = 0 ) { if ( baseURL ) { axios . defaults . baseURL = baseURL ; } axios . defaults . timeout = timeout ; axios . interceptors . request . use ( function ( config ) { return config ; } , function ( err ) { if ( process . env . NODE_ENV !== "production" ) { console . error ( err ) ; } return Promise . reject ( err ) ; } ) ; return axios ; }