Properties
Axios
Axios: typeof Axios
AxiosError
AxiosError: typeof AxiosError
AxiosHeaders
AxiosHeaders: typeof AxiosHeaders
Cancel
Cancel: CancelStatic
CancelToken
CancelToken: CancelTokenStatic
CanceledError
CanceledError: typeof CanceledError
HttpStatusCode
HttpStatusCode: typeof HttpStatusCode
Readonly
VERSION
VERSION: string
all
all: (<T>(values) => Promise<T[]>) Type declaration
- <T>(values): Promise<T[]>
Parameters
- values: (T | Promise<T>)[]
Returns Promise<T[]>
defaults
defaults: Omit<AxiosDefaults<any>, "headers"> & {
headers: HeadersDefaults & {
[key: string]: AxiosHeaderValue;
};
}
Type declaration
headers: HeadersDefaults & {
[key: string]: AxiosHeaderValue;
}
formToJSON
formToJSON: ((form) => object)
Type declaration
- (form): object
Parameters
- form: GenericFormData | GenericHTMLFormElement
Returns object
getAdapter
getAdapter: ((adapters) => AxiosAdapter)
Type declaration
- (adapters): AxiosAdapter
Parameters
- adapters: undefined | AxiosAdapterConfig | AxiosAdapterConfig[]
Returns AxiosAdapter
interceptors
interceptors: {
request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
response: AxiosInterceptorManager<AxiosResponse<any, any>>;
}
Type declaration
request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>
response: AxiosInterceptorManager<AxiosResponse<any, any>>
isAxiosError
isAxiosError: (<T, D>(payload) => payload is AxiosError<T, D>) Type declaration
- <T, D>(payload): payload is AxiosError<T, D>
Returns payload is AxiosError<T, D>
isCancel
isCancel: ((value) => value is Cancel)
Type declaration
- (value): value is Cancel
Returns value is Cancel
spread
spread: (<T, R>(callback) => ((array) => R)) Type declaration
- <T, R>(callback): ((array) => R)
Parameters
- callback: ((...args) => R)
Returns ((array) => R)
toFormData
toFormData: ((sourceObj, targetFormData?, options?) => GenericFormData)
Type declaration
- (sourceObj, targetFormData?, options?): GenericFormData
Parameters
- sourceObj: object
Optional
targetFormData: GenericFormDataOptional
options: FormSerializerOptions
Returns GenericFormData