From e6f3b4249dc41cda6654a7815c67fc812cb8e37a Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sun, 24 Jun 2018 22:36:00 +0200 Subject: [PATCH] chore: remove no used type --- flow-typed/npm/axios_v0.17.x.js | 143 -------------------------------- 1 file changed, 143 deletions(-) delete mode 100644 flow-typed/npm/axios_v0.17.x.js diff --git a/flow-typed/npm/axios_v0.17.x.js b/flow-typed/npm/axios_v0.17.x.js deleted file mode 100644 index ed140d245..000000000 --- a/flow-typed/npm/axios_v0.17.x.js +++ /dev/null @@ -1,143 +0,0 @@ -// flow-typed signature: 9fd7b9287df55ee8cfa980889d107499 -// flow-typed version: a8b5058d19/axios_v0.17.x/flow_>=v0.25.x - -declare module "axios" { - declare interface ProxyConfig { - host: string; - port: number; - } - declare interface Cancel { - constructor(message?: string): Cancel; - message: string; - } - declare interface Canceler { - (message?: string): void; - } - declare interface CancelTokenSource { - token: CancelToken; - cancel: Canceler; - } - declare class CancelToken { - constructor(executor: (cancel: Canceler) => void): CancelToken; - static source(): CancelTokenSource; - promise: Promise; - reason?: Cancel; - throwIfRequested(): void; - } - declare interface AxiosXHRConfigBase { - adapter?: (config: AxiosXHRConfig) => Promise>; - auth?: { - username: string, - password: string - }; - baseURL?: string; - cancelToken?: CancelToken; - headers?: Object; - httpAgent?: mixed; // Missing the type in the core flow node libdef - httpsAgent?: mixed; // Missing the type in the core flow node libdef - maxContentLength?: number; - maxRedirects?: 5; - params?: Object; - paramsSerializer?: (params: Object) => string; - progress?: (progressEvent: Event) => void | mixed; - proxy?: ProxyConfig | false; - responseType?: - | "arraybuffer" - | "blob" - | "document" - | "json" - | "text" - | "stream"; - timeout?: number; - transformRequest?: Array<(data: T) => U | Array<(data: T) => U>>; - transformResponse?: Array<(data: T) => U>; - validateStatus?: (status: number) => boolean; - withCredentials?: boolean; - xsrfCookieName?: string; - xsrfHeaderName?: string; - } - declare type $AxiosXHRConfigBase = AxiosXHRConfigBase; - declare interface AxiosXHRConfig extends AxiosXHRConfigBase { - data?: T; - method?: string; - url: string; - } - declare type $AxiosXHRConfig = AxiosXHRConfig; - declare class AxiosXHR { - config: AxiosXHRConfig; - data: T; - headers?: Object; - status: number; - statusText: string; - request: http$ClientRequest | XMLHttpRequest; - } - declare type $AxiosXHR = AxiosXHR; - declare class AxiosInterceptorIdent extends String {} - declare class AxiosRequestInterceptor { - use( - successHandler: ?( - response: AxiosXHRConfig - ) => Promise> | AxiosXHRConfig<*>, - errorHandler: ?(error: mixed) => mixed - ): AxiosInterceptorIdent; - eject(ident: AxiosInterceptorIdent): void; - } - declare class AxiosResponseInterceptor { - use( - successHandler: ?(response: AxiosXHR) => mixed, - errorHandler: ?(error: $AxiosError) => mixed - ): AxiosInterceptorIdent; - eject(ident: AxiosInterceptorIdent): void; - } - declare type AxiosPromise = Promise>; - declare class Axios { - constructor(config?: AxiosXHRConfigBase): void; - $call: ( - config: AxiosXHRConfig | string, - config?: AxiosXHRConfig - ) => AxiosPromise; - request(config: AxiosXHRConfig): AxiosPromise; - delete(url: string, config?: AxiosXHRConfigBase): AxiosPromise; - get(url: string, config?: AxiosXHRConfigBase): AxiosPromise; - head(url: string, config?: AxiosXHRConfigBase): AxiosPromise; - post( - url: string, - data?: mixed, - config?: AxiosXHRConfigBase - ): AxiosPromise; - put( - url: string, - data?: mixed, - config?: AxiosXHRConfigBase - ): AxiosPromise; - patch( - url: string, - data?: mixed, - config?: AxiosXHRConfigBase - ): AxiosPromise; - interceptors: { - request: AxiosRequestInterceptor, - response: AxiosResponseInterceptor - }; - defaults: { headers: Object } & AxiosXHRConfig<*>; - } - - declare class AxiosError extends Error { - config: AxiosXHRConfig; - response: AxiosXHR; - code?: string; - } - - declare type $AxiosError = AxiosError; - - declare interface AxiosExport extends Axios { - Axios: typeof Axios; - Cancel: Class; - CancelToken: Class; - isCancel(value: any): boolean; - create(config?: AxiosXHRConfigBase): Axios; - all: typeof Promise.all; - spread(callback: Function): (arr: Array) => Function; - } - declare module.exports: AxiosExport; -}