Skip to content

Commit

Permalink
Merge pull request #3 from geopic/types-declaration-file
Browse files Browse the repository at this point in the history
Add types declaration file
  • Loading branch information
skycloud1030 committed Mar 4, 2020
2 parents 4fb8b4a + 0e52e70 commit 601c147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "JavaScript Check if array contains any of another array",
"license": "MIT",
"main": "dist/index.js",
"types": "src/types.d.ts",
"keywords": [
"array",
"includes",
Expand Down Expand Up @@ -58,4 +59,4 @@
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
}
}
}
3 changes: 3 additions & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'array-includes-any' {
export default function array_includes_any<T>(array1: T[], array2: T[], type?: string): boolean;
}

0 comments on commit 601c147

Please sign in to comment.