@mapxus/mapxus-map-jp 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,133 +0,0 @@
1
- export as namespace AxiosType;
2
-
3
- export interface AxiosTransformer {
4
- (data: any, headers?: any): any;
5
- }
6
-
7
- export interface AxiosAdapter {
8
- (config: AxiosRequestConfig): AxiosPromise<any>;
9
- }
10
-
11
- export interface AxiosBasicCredentials {
12
- username: string;
13
- password: string;
14
- }
15
-
16
- export interface AxiosProxyConfig {
17
- host: string;
18
- port: number;
19
- auth?: {
20
- username: string;
21
- password:string;
22
- }
23
- }
24
-
25
- export interface AxiosRequestConfig {
26
- url?: string;
27
- method?: string;
28
- baseURL?: string;
29
- transformRequest?: AxiosTransformer | AxiosTransformer[];
30
- transformResponse?: AxiosTransformer | AxiosTransformer[];
31
- headers?: any;
32
- params?: any;
33
- paramsSerializer?: (params: any) => string;
34
- data?: any;
35
- timeout?: number;
36
- withCredentials?: boolean;
37
- adapter?: AxiosAdapter;
38
- auth?: AxiosBasicCredentials;
39
- responseType?: string;
40
- xsrfCookieName?: string;
41
- xsrfHeaderName?: string;
42
- onUploadProgress?: (progressEvent: any) => void;
43
- onDownloadProgress?: (progressEvent: any) => void;
44
- maxContentLength?: number;
45
- validateStatus?: (status: number) => boolean;
46
- maxRedirects?: number;
47
- httpAgent?: any;
48
- httpsAgent?: any;
49
- proxy?: AxiosProxyConfig | false;
50
- cancelToken?: CancelToken;
51
- }
52
-
53
- export interface AxiosResponse<T = any> {
54
- data: T;
55
- status: number;
56
- statusText: string;
57
- headers: any;
58
- config: AxiosRequestConfig;
59
- request?: any;
60
- }
61
-
62
- export interface AxiosError extends Error {
63
- config: AxiosRequestConfig;
64
- code?: string;
65
- request?: any;
66
- response?: AxiosResponse;
67
- }
68
-
69
- export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
70
- }
71
-
72
- export interface CancelStatic {
73
- new (message?: string): Cancel;
74
- }
75
-
76
- export interface Cancel {
77
- message: string;
78
- }
79
-
80
- export interface Canceler {
81
- (message?: string): void;
82
- }
83
-
84
- export interface CancelTokenStatic {
85
- new (executor: (cancel: Canceler) => void): CancelToken;
86
- source(): CancelTokenSource;
87
- }
88
-
89
- export interface CancelToken {
90
- promise: Promise<Cancel>;
91
- reason?: Cancel;
92
- throwIfRequested(): void;
93
- }
94
-
95
- export interface CancelTokenSource {
96
- token: CancelToken;
97
- cancel: Canceler;
98
- }
99
-
100
- export interface AxiosInterceptorManager<V> {
101
- use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any): number;
102
- eject(id: number): void;
103
- }
104
-
105
- export interface AxiosInstance {
106
- (config: AxiosRequestConfig): AxiosPromise;
107
- (url: string, config?: AxiosRequestConfig): AxiosPromise;
108
- defaults: AxiosRequestConfig;
109
- interceptors: {
110
- request: AxiosInterceptorManager<AxiosRequestConfig>;
111
- response: AxiosInterceptorManager<AxiosResponse>;
112
- };
113
- request<T = any>(config: AxiosRequestConfig): AxiosPromise<T>;
114
- get<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
115
- delete(url: string, config?: AxiosRequestConfig): AxiosPromise;
116
- head(url: string, config?: AxiosRequestConfig): AxiosPromise;
117
- post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
118
- put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
119
- patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
120
- }
121
-
122
- export interface AxiosStatic extends AxiosInstance {
123
- create(config?: AxiosRequestConfig): AxiosInstance;
124
- Cancel: CancelStatic;
125
- CancelToken: CancelTokenStatic;
126
- isCancel(value: any): boolean;
127
- all<T>(values: (T | Promise<T>)[]): Promise<T[]>;
128
- spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
129
- }
130
-
131
- declare const Axios: AxiosStatic;
132
-
133
- export default Axios;