mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
16 lines
629 B
TypeScript
16 lines
629 B
TypeScript
// Type definitions for url-join v0.8.3
|
|
// Project: https://github.com/jfromaniello/url-join
|
|
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>, Mike Deverell <https://github.com/devrelm>
|
|
// 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 will work different depending of the operative systems but also doesn't work for some cases.
|
|
*/
|
|
|
|
declare var urljoin: (...parts: string[]) => string;
|
|
|
|
declare module "url-join" {
|
|
export = urljoin;
|
|
}
|