accounts-frontend/src/services/request/index.js

16 lines
377 B
JavaScript
Raw Normal View History

2016-07-30 23:48:58 +05:30
import request from './request';
import InternalServerError from './InternalServerError';
2016-07-30 23:48:58 +05:30
/**
* Usage: Query<'requeired'|'keys'|'names'>
* TODO: find a way to make it more friendly with URLSearchParams type
*/
export type Query<T: string> = {
get: (key: T) => ?string,
set: (key: T, value: any) => void,
};
2016-07-30 23:48:58 +05:30
export default request;
export { InternalServerError };