We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94e7527 commit 257359aCopy full SHA for 257359a
.npmignore
@@ -1,2 +1,5 @@
1
# All unnecessary
2
*
3
+
4
+# But not
5
+!index.d.ts
index.d.ts
@@ -0,0 +1,9 @@
+/**
+ * Checks for the presence of URL protocol without a slashes (colon-slash-slash)
+ *
+ * @param str - string for check
6
+ * @returns true if it is a URL and protocol without slashes
7
+ */
8
+declare const isUrlProtocolWithoutSlashes: (str: string) => Boolean;
9
+export default isUrlProtocolWithoutSlashes;
package.json
@@ -3,6 +3,7 @@
"version": "1.0.3",
"description": "Checks for the presence of URL protocol without a slashes (colon-slash-slash)",
"main": "index.js",
+ "types": "index.d.ts",
"sideEffects": false,
"scripts": {
"lint": "eslint .",
0 commit comments