2019-12-25 15:31:12 +05:30
|
|
|
import { Resp as TResp } from './request';
|
|
|
|
import { Middleware as TMiddleware } from './PromiseMiddlewareLayer';
|
|
|
|
|
|
|
|
export { default } from './request';
|
2017-08-02 01:30:02 +05:30
|
|
|
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
|
|
|
|
2019-12-25 15:31:12 +05:30
|
|
|
export type Resp<T> = TResp<T>;
|
|
|
|
export type Middleware = TMiddleware;
|
|
|
|
|
2017-08-08 01:41:39 +05:30
|
|
|
/**
|
2019-12-25 15:31:12 +05:30
|
|
|
* Usage: Query<'required'|'keys'|'names'>
|
2017-08-08 01:41:39 +05:30
|
|
|
* TODO: find a way to make it more friendly with URLSearchParams type
|
|
|
|
*/
|
2019-12-07 16:58:52 +05:30
|
|
|
export type Query<T extends string> = {
|
|
|
|
get: (key: T) => string | void;
|
|
|
|
set: (key: T, value: any) => void;
|
2017-08-08 01:41:39 +05:30
|
|
|
};
|