2017-08-02 01:30:02 +05:30
|
|
|
// @flow
|
|
|
|
export { default } from './request';
|
|
|
|
export type { Resp } from './request';
|
|
|
|
export { default as InternalServerError } from './InternalServerError';
|
2018-11-04 13:39:42 +05:30
|
|
|
export { default as RequestAbortedError } from './RequestAbortedError';
|
2016-07-30 23:48:58 +05:30
|
|
|
|
2017-08-08 01:41:39 +05:30
|
|
|
/**
|
|
|
|
* Usage: Query<'requeired'|'keys'|'names'>
|
|
|
|
* TODO: find a way to make it more friendly with URLSearchParams type
|
|
|
|
*/
|
|
|
|
export type Query<T: string> = {
|
2019-11-27 14:33:32 +05:30
|
|
|
get: (key: T) => ?string,
|
|
|
|
set: (key: T, value: any) => void,
|
2017-08-08 01:41:39 +05:30
|
|
|
};
|