We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85aec2 commit 2cd46bcCopy full SHA for 2cd46bc
lib/url-join.d.ts
@@ -0,0 +1,9 @@
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
+ */
6
+declare function urlJoin(...parts: string[]): string;
7
+declare function urlJoin(parts: string[]): string;
8
+
9
+export = urlJoin;
package.json
@@ -3,6 +3,7 @@
"version": "4.0.1",
"description": "Join urls and normalize as in path.join.",
"main": "lib/url-join.js",
+ "types": "lib/url-join.d.ts",
"scripts": {
"test": "mocha --require should"
},
0 commit comments