UNPKG

385 BTypeScriptView Raw
1/**
2 * Join all arguments together and normalize the resulting url.
3 * This works similar to `path.join` but you shouldn't use `path.join` for urls since it works
4 * differently depending on the operating system and also doesn't work for some cases.
5 */
6declare function urlJoin(...parts: string[]): string;
7declare function urlJoin(parts: string[]): string;
8
9export default urlJoin;