14 lines
480 B
TypeScript
Raw Normal View History

2019-12-07 13:28:52 +02:00
export { default, Resp } from './request';
export { Middleware } from './PromiseMiddlewareLayer';
export { default as InternalServerError } from './InternalServerError';
export { default as RequestAbortedError } from './RequestAbortedError';
2016-07-30 21:18:58 +03:00
/**
* Usage: Query<'requeired'|'keys'|'names'>
* TODO: find a way to make it more friendly with URLSearchParams type
*/
2019-12-07 13:28:52 +02:00
export type Query<T extends string> = {
get: (key: T) => string | void;
set: (key: T, value: any) => void;
};