Skip to content

Commit 2bfc143

Browse files
committed
feat: add typings
1 parent 046880e commit 2bfc143

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare function encodeRegistry (registry: string): string
2+
3+
export = encodeRegistry;

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"version": "1.0.0",
44
"description": "Encodes a registry URL. Memoized.",
55
"main": "index.js",
6+
"typings": "index.d.ts",
67
"files": [
7-
"index.js"
8+
"index.js",
9+
"index.d.ts"
810
],
911
"engines": {
1012
"node": ">=4"

0 commit comments

Comments
 (0)