nyro
Version:
A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
11 lines (10 loc) • 454 B
TypeScript
/**
* Combines a base URL with a relative URL, ensuring that there is exactly one slash between them.
*
* @param baseUrl - The base URL to which the relative URL will be appended.
* @param url - The relative URL to append to the base URL.
* @param path - The path to append to the combined URL.
* @returns The combined URL as a string.
*/
declare function combineUrl(baseUrl: string, url: string, path: string): string;
export default combineUrl;