@vector-im/matrix-bot-sdk
Version:
TypeScript/JavaScript SDK for Matrix bots and appservices
13 lines (12 loc) • 404 B
TypeScript
/**
* Sets the function to use for performing HTTP requests. Must be compatible with `request`.
* @param fn The new request function.
* @category Unit testing
*/
export declare function setRequestFn(fn: any): void;
/**
* Gets the `request`-compatible function for performing HTTP requests.
* @returns The request function.
* @category Unit testing
*/
export declare function getRequestFn(): any;