ts-midtrans-client
Version:
This library is an UNOFFICIAL TypeScript version of the Midtrans Client - Node.js.
12 lines (11 loc) • 563 B
TypeScript
declare class SnapBiApiRequestor {
/**
* Make a remote API call with the specified URL, headers, and request body.
* @param {string} url - The API endpoint URL.
* @param {object} header - The headers for the request.
* @param {object} body - The JSON payload for the request.
* @returns {Promise<object>} - The JSON response from the API.
*/
static remoteCall(url: string, header: Record<string, string>, body: Record<string, any>, timeout?: number | null): Promise<Record<string, any>>;
}
export default SnapBiApiRequestor;