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/DefinitelyTyped/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 | */
|
13 | declare function urljoin(...parts: string[]): string;
|
14 | declare function urljoin(parts: string[]): string;
|
15 |
|
16 | export = urljoin;
|
17 | export as namespace urljoin;
|