DefinitelyTyped/types/url-join/index.d.ts
Dimitri Benin 9ac607c9d8 [url-join] Update types to v4.0 (#31768)
* [url-join] Move v0 types to sub-dir

* [url-join] Update types to v4.0
2018-12-31 08:02:39 -08:00

18 lines
762 B
TypeScript

// Type definitions for url-join 4.0
// Project: https://github.com/jfromaniello/url-join
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Mike Deverell <https://github.com/devrelm>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* Join all arguments together and normalize the resulting url.
* This works similar to `path.join` but you shouldn't use `path.join` for urls since it works
* differently depending on the operating system and also doesn't work for some cases.
*/
declare function urljoin(...parts: string[]): string;
declare function urljoin(parts: string[]): string;
export = urljoin;
export as namespace urljoin;