@@ -364,7 +364,7 @@ export interface LookupAddressEntry {
364364export type LookupAddress = string | LookupAddressEntry ;
365365
366366export interface AxiosRequestConfig < D = any > {
367- url ?: string | URL ;
367+ url ?: string ;
368368 method ?: StringLiteralsOrString < Method > ;
369369 baseURL ?: string ;
370370 allowAbsoluteUrls ?: boolean ;
@@ -609,61 +609,61 @@ export class Axios {
609609 getUri ( config ?: AxiosRequestConfig ) : string ;
610610 request < T = any , R = AxiosResponse < T > , D = any > ( config : AxiosRequestConfig < D > ) : Promise < R > ;
611611 get < T = any , R = AxiosResponse < T > , D = any > (
612- url : string | URL ,
612+ url : string ,
613613 config ?: AxiosRequestConfig < D >
614614 ) : Promise < R > ;
615615 delete < T = any , R = AxiosResponse < T > , D = any > (
616- url : string | URL ,
616+ url : string ,
617617 config ?: AxiosRequestConfig < D >
618618 ) : Promise < R > ;
619619 head < T = any , R = AxiosResponse < T > , D = any > (
620- url : string | URL ,
620+ url : string ,
621621 config ?: AxiosRequestConfig < D >
622622 ) : Promise < R > ;
623623 options < T = any , R = AxiosResponse < T > , D = any > (
624- url : string | URL ,
624+ url : string ,
625625 config ?: AxiosRequestConfig < D >
626626 ) : Promise < R > ;
627627 post < T = any , R = AxiosResponse < T > , D = any > (
628- url : string | URL ,
628+ url : string ,
629629 data ?: D ,
630630 config ?: AxiosRequestConfig < D >
631631 ) : Promise < R > ;
632632 put < T = any , R = AxiosResponse < T > , D = any > (
633- url : string | URL ,
633+ url : string ,
634634 data ?: D ,
635635 config ?: AxiosRequestConfig < D >
636636 ) : Promise < R > ;
637637 patch < T = any , R = AxiosResponse < T > , D = any > (
638- url : string | URL ,
638+ url : string ,
639639 data ?: D ,
640640 config ?: AxiosRequestConfig < D >
641641 ) : Promise < R > ;
642642 postForm < T = any , R = AxiosResponse < T > , D = any > (
643- url : string | URL ,
643+ url : string ,
644644 data ?: D ,
645645 config ?: AxiosRequestConfig < D >
646646 ) : Promise < R > ;
647647 putForm < T = any , R = AxiosResponse < T > , D = any > (
648- url : string | URL ,
648+ url : string ,
649649 data ?: D ,
650650 config ?: AxiosRequestConfig < D >
651651 ) : Promise < R > ;
652652 patchForm < T = any , R = AxiosResponse < T > , D = any > (
653- url : string | URL ,
653+ url : string ,
654654 data ?: D ,
655655 config ?: AxiosRequestConfig < D >
656656 ) : Promise < R > ;
657657 query < T = any , R = AxiosResponse < T > , D = any > (
658- url : string | URL ,
658+ url : string ,
659659 data ?: D ,
660660 config ?: AxiosRequestConfig < D >
661661 ) : Promise < R > ;
662662}
663663
664664export interface AxiosInstance extends Axios {
665665 < T = any , R = AxiosResponse < T > , D = any > ( config : AxiosRequestConfig < D > ) : Promise < R > ;
666- < T = any , R = AxiosResponse < T > , D = any > ( url : string | URL , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
666+ < T = any , R = AxiosResponse < T > , D = any > ( url : string , config ?: AxiosRequestConfig < D > ) : Promise < R > ;
667667
668668 create ( config ?: CreateAxiosDefaults ) : AxiosInstance ;
669669 defaults : Omit < AxiosDefaults , 'headers' > & {
0 commit comments