Skip to content

Commit

Permalink
feat: added typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcoad committed Dec 20, 2019
1 parent 1c834c8 commit 901400f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module "case-insensitive-compare" {
export default function caseInsensitiveCompare(
a: string,
b: string
): ReturnType<typeof boolean>;
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "case-insensitive-compare",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"Nick Coad <dev@coader.io>"
],
"description": "Case insensitive string comparison.",
"main": "src/index.js",
"types": "index.d.ts",
"keywords": [
"string",
"compare",
Expand Down

0 comments on commit 901400f

Please sign in to comment.