forked from withspectrum/spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
22,264 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
flow-typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// flow-typed signature: 5462698d692d5f78e5d480911744b64c | ||
// flow-typed version: <<STUB>>/apollo-local-query_v^0.3.0/flow_v0.55.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'apollo-local-query' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'apollo-local-query' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'apollo-local-query/tests/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'apollo-local-query/index' { | ||
declare module.exports: $Exports<'apollo-local-query'>; | ||
} | ||
declare module 'apollo-local-query/index.js' { | ||
declare module.exports: $Exports<'apollo-local-query'>; | ||
} | ||
declare module 'apollo-local-query/tests/index.js' { | ||
declare module.exports: $Exports<'apollo-local-query/tests/index'>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// flow-typed signature: 117ba9d930921f50a85cdfae1b01d88f | ||
// flow-typed version: <<STUB>>/apollo-upload-client_v^5.1.0/flow_v0.55.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'apollo-upload-client' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'apollo-upload-client' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'apollo-upload-client/dist/apollo-upload-client' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-client/dist/apollo-upload-client.module' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-client/src/batched-network-interface' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-client/src/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-client/src/network-interface' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'apollo-upload-client/dist/apollo-upload-client.js' { | ||
declare module.exports: $Exports<'apollo-upload-client/dist/apollo-upload-client'>; | ||
} | ||
declare module 'apollo-upload-client/dist/apollo-upload-client.module.js' { | ||
declare module.exports: $Exports<'apollo-upload-client/dist/apollo-upload-client.module'>; | ||
} | ||
declare module 'apollo-upload-client/src/batched-network-interface.js' { | ||
declare module.exports: $Exports<'apollo-upload-client/src/batched-network-interface'>; | ||
} | ||
declare module 'apollo-upload-client/src/index.js' { | ||
declare module.exports: $Exports<'apollo-upload-client/src/index'>; | ||
} | ||
declare module 'apollo-upload-client/src/network-interface.js' { | ||
declare module.exports: $Exports<'apollo-upload-client/src/network-interface'>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// flow-typed signature: f10de48a7e33496e4a9ec4960ee54eeb | ||
// flow-typed version: <<STUB>>/apollo-upload-server_v^2.0.4/flow_v0.55.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'apollo-upload-server' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'apollo-upload-server' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'apollo-upload-server/dist/apollo-upload-server' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-server/dist/apollo-upload-server.module' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'apollo-upload-server/src/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'apollo-upload-server/dist/apollo-upload-server.js' { | ||
declare module.exports: $Exports<'apollo-upload-server/dist/apollo-upload-server'>; | ||
} | ||
declare module 'apollo-upload-server/dist/apollo-upload-server.module.js' { | ||
declare module.exports: $Exports<'apollo-upload-server/dist/apollo-upload-server.module'>; | ||
} | ||
declare module 'apollo-upload-server/src/index.js' { | ||
declare module.exports: $Exports<'apollo-upload-server/src/index'>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// flow-typed signature: c788eedb73f0df0fed02bf99c0b49bcc | ||
// flow-typed version: 2adcdf60cc/axios_v0.16.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 interface CancelToken { | ||
constructor(executor: (cancel: Canceler) => void): CancelToken, | ||
static source(): CancelTokenSource, | ||
promise: Promise<Cancel>, | ||
reason?: Cancel, | ||
throwIfRequested(): void, | ||
} | ||
declare interface AxiosXHRConfigBase<T> { | ||
adapter?: <T>(config: AxiosXHRConfig<T>) => Promise<AxiosXHR<T>>, | ||
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, | ||
responseType?: | ||
| 'arraybuffer' | ||
| 'blob' | ||
| 'document' | ||
| 'json' | ||
| 'text' | ||
| 'stream', | ||
timeout?: number, | ||
transformRequest?: Array<<U>(data: T) => U | Array<<U>(data: T) => U>>, | ||
transformResponse?: Array<<U>(data: T) => U>, | ||
validateStatus?: (status: number) => boolean, | ||
withCredentials?: boolean, | ||
xsrfCookieName?: string, | ||
xsrfHeaderName?: string, | ||
} | ||
declare type $AxiosXHRConfigBase<T> = AxiosXHRConfigBase<T>; | ||
declare interface AxiosXHRConfig<T> extends AxiosXHRConfigBase<T> { | ||
data?: T, | ||
method?: string, | ||
url: string, | ||
} | ||
declare type $AxiosXHRConfig<T> = AxiosXHRConfig<T>; | ||
declare class AxiosXHR<T> { | ||
config: AxiosXHRConfig<T>, | ||
data: T, | ||
headers: Object, | ||
status: number, | ||
statusText: string, | ||
request: http$ClientRequest | XMLHttpRequest, | ||
} | ||
declare type $AxiosXHR<T> = AxiosXHR<T>; | ||
declare class AxiosInterceptorIdent extends String {} | ||
declare class AxiosRequestInterceptor<T> { | ||
use( | ||
successHandler: ?( | ||
response: AxiosXHRConfig<T> | ||
) => Promise<AxiosXHRConfig<*>> | AxiosXHRConfig<*>, | ||
errorHandler: ?(error: mixed) => mixed | ||
): AxiosInterceptorIdent, | ||
eject(ident: AxiosInterceptorIdent): void, | ||
} | ||
declare class AxiosResponseInterceptor<T> { | ||
use( | ||
successHandler: ?(response: AxiosXHR<T>) => mixed, | ||
errorHandler: ?(error: $AxiosError<any>) => mixed | ||
): AxiosInterceptorIdent, | ||
eject(ident: AxiosInterceptorIdent): void, | ||
} | ||
declare type AxiosPromise<T> = Promise<AxiosXHR<T>>; | ||
declare class Axios { | ||
constructor<T>(config?: AxiosXHRConfigBase<T>): void, | ||
$call: <T>( | ||
config: AxiosXHRConfig<T> | string, | ||
config?: AxiosXHRConfig<T> | ||
) => AxiosPromise<T>, | ||
request<T>(config: AxiosXHRConfig<T>): AxiosPromise<T>, | ||
delete<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>, | ||
get<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>, | ||
head<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>, | ||
post<T>( | ||
url: string, | ||
data?: mixed, | ||
config?: AxiosXHRConfigBase<T> | ||
): AxiosPromise<T>, | ||
put<T>( | ||
url: string, | ||
data?: mixed, | ||
config?: AxiosXHRConfigBase<T> | ||
): AxiosPromise<T>, | ||
patch<T>( | ||
url: string, | ||
data?: mixed, | ||
config?: AxiosXHRConfigBase<T> | ||
): AxiosPromise<T>, | ||
interceptors: { | ||
request: AxiosRequestInterceptor<mixed>, | ||
response: AxiosResponseInterceptor<mixed>, | ||
}, | ||
defaults: AxiosXHRConfig<*> & { headers: Object }, | ||
} | ||
|
||
declare class AxiosError<T> extends Error { | ||
config: AxiosXHRConfig<T>, | ||
response: AxiosXHR<T>, | ||
code?: string, | ||
} | ||
|
||
declare type $AxiosError<T> = AxiosError<T>; | ||
|
||
declare interface AxiosExport extends Axios { | ||
Axios: typeof Axios, | ||
Cancel: Class<Cancel>, | ||
CancelToken: Class<CancelToken>, | ||
isCancel(value: any): boolean, | ||
create(config?: AxiosXHRConfigBase<any>): Axios, | ||
all: typeof Promise.all, | ||
spread(callback: Function): (arr: Array<any>) => Function, | ||
} | ||
declare module.exports: AxiosExport; | ||
} |
Oops, something went wrong.