Skip to content

Commit

Permalink
[minor] Add TypeScript type definitions
Browse files Browse the repository at this point in the history
Fixes: #4
  • Loading branch information
lpinca committed Nov 26, 2020
1 parent 6ba119d commit 02d554b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.d.ts
@@ -0,0 +1,3 @@
declare function parse(header: string): Record<string, string>;

export = parse;
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,8 @@
"author": "Luigi Pinca",
"files": [
"lib",
"index.js"
"index.js",
"index.d.ts"
],
"main": "index.js",
"repository": "lpinca/forwarded-parse",
Expand Down

0 comments on commit 02d554b

Please sign in to comment.