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

14 lines
386 B
JavaScript
Raw Normal View History

// @flow
export { default } from './request';
export type { Resp } from './request';
export { default as 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,
};