Sha256: db238fe8b03a763bc9393f5328f2ad1ba83534787e5beb024551206484958a8d
Contents?: true
Size: 1.09 KB
Versions: 21
Compression:
Stored size: 1.09 KB
Contents
import axios from "axios"; import { GlobalLogger } from "js-logger"; declare module "axios" { interface CustomRequestConfig extends AxiosRequestConfig { showToastr?: Boolean; includeMetadataInResponse?: Boolean; transformResponseCase?: Boolean; transformRequestCase?: Boolean; redirectOnError?: Boolean; show404ErrorPage?: Boolean; } export interface AxiosInstance { request(config: CustomRequestConfig): Promise<any>; get(url: string, config?: CustomRequestConfig): Promise<any>; delete(url: string, config?: CustomRequestConfig): Promise<any>; head(url: string, config?: CustomRequestConfig): Promise<any>; post(url: string, data?: any, config?: CustomRequestConfig): Promise<any>; put(url: string, data?: any, config?: CustomRequestConfig): Promise<any>; patch(url: string, data?: any, config?: CustomRequestConfig): Promise<any>; } } declare global { var logger: GlobalLogger; declare module "images/*" { const content: any; export default content; } declare module "*.json" { const content: any; export default content; } }
Version data entries
21 entries across 21 versions & 1 rubygems