@kaguyajs/trss-yunzai-types
    Preparing search index...

    Interface AxiosStatic

    interface AxiosStatic {
        Axios: typeof Axios;
        AxiosError: typeof AxiosError;
        AxiosHeaders: typeof AxiosHeaders;
        Cancel: CancelStatic;
        CanceledError: typeof CanceledError;
        CancelToken: CancelTokenStatic;
        defaults: Omit<AxiosDefaults<any>, "headers"> & {
            headers: HeadersDefaults & { [key: string]: AxiosHeaderValue };
        };
        HttpStatusCode: typeof HttpStatusCode;
        interceptors: {
            request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
            response: AxiosInterceptorManager<AxiosResponse<any, any, {}>>;
        };
        VERSION: string;
        all<T>(values: (T | Promise<T>)[]): Promise<T[]>;
        create(config?: CreateAxiosDefaults): AxiosInstance;
        delete<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        formToJSON(form: GenericFormData | GenericHTMLFormElement): object;
        get<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        getAdapter(
            adapters: AxiosAdapterConfig | AxiosAdapterConfig[],
        ): AxiosAdapter;
        getUri(config?: AxiosRequestConfig): string;
        head<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
        isCancel(value: any): value is Cancel;
        mergeConfig<D = any>(
            config1: AxiosRequestConfig<D>,
            config2: AxiosRequestConfig<D>,
        ): AxiosRequestConfig<D>;
        options<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        patch<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        patchForm<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        post<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        postForm<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        put<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        putForm<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            data?: D,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
        request<T = any, R = AxiosResponse<T, any, {}>, D = any>(
            config: AxiosRequestConfig<D>,
        ): Promise<R>;
        spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
        toFormData(
            sourceObj: object,
            targetFormData?: GenericFormData,
            options?: FormSerializerOptions,
        ): GenericFormData;
        <T = any, R = AxiosResponse<T, any, {}>, D = any>(
            config: AxiosRequestConfig<D>,
        ): Promise<R>;
        <T = any, R = AxiosResponse<T, any, {}>, D = any>(
            url: string,
            config?: AxiosRequestConfig<D>,
        ): Promise<R>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Axios: typeof Axios
    AxiosError: typeof AxiosError
    AxiosHeaders: typeof AxiosHeaders
    Cancel: CancelStatic
    CanceledError: typeof CanceledError
    CancelToken: CancelTokenStatic
    defaults: Omit<AxiosDefaults<any>, "headers"> & {
        headers: HeadersDefaults & { [key: string]: AxiosHeaderValue };
    }
    HttpStatusCode: typeof HttpStatusCode
    interceptors: {
        request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
        response: AxiosInterceptorManager<AxiosResponse<any, any, {}>>;
    }
    VERSION: string

    Methods

    • Type Parameters

      • T

      Parameters

      • values: (T | Promise<T>)[]

      Returns Promise<T[]>

    • Type Parameters

      • T = any
      • D = any

      Parameters

      • payload: any

      Returns payload is AxiosError<T, D>

    • Parameters

      • value: any

      Returns value is Cancel

    post

    • Type Parameters

      • T
      • R

      Parameters

      • callback: (...args: T[]) => R

      Returns (array: T[]) => R