mappersmith
Version:
It is a lightweight rest client for node.js and the browser
16 lines (13 loc) • 508 B
text/typescript
import { a as RequestContext, R as Request } from '../index-D3_z6QHM.mjs';
import { RequestParams } from '../types.mjs';
interface RequestFactoryArgs extends RequestParams {
method?: string;
path?: string;
context?: RequestContext;
}
/**
* Create a request to use in tests
* @returns Request
*/
declare const requestFactory: ({ method, host, path, auth, body, headers, params, timeout, context, ...rest }?: RequestFactoryArgs) => Request;
export { type RequestFactoryArgs, requestFactory };