UNPKG

762 BTypeScriptView Raw
1// Type definitions for url-join 4.0
2// Project: https://github.com/jfromaniello/url-join
3// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
4// Mike Deverell <https://github.com/devrelm>
5// BendingBender <https://github.com/BendingBender>
6// Definitions: https://github.com/borisyankov/DefinitelyTyped
7
8/**
9 * Join all arguments together and normalize the resulting url.
10 * This works similar to `path.join` but you shouldn't use `path.join` for urls since it works
11 * differently depending on the operating system and also doesn't work for some cases.
12 */
13declare function urljoin(...parts: string[]): string;
14declare function urljoin(parts: string[]): string;
15
16export = urljoin;
17export as namespace urljoin;