Skip to content

Commit

Permalink
Merge pull request #2 from EvanHahn/type-definitions
Browse files Browse the repository at this point in the history
Add TypeScript type definitions
  • Loading branch information
Dafrok committed Apr 17, 2024
2 parents 66e1c1d + 1f3c73f commit 84b882b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function ifEmoji(text: string): boolean;
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.10",
"description": "Check a character if it is a correctly supported emoji.",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "karma start",
"build": "rm -rf ./index.js && rollup -c"
Expand All @@ -19,6 +20,9 @@
"support"
],
"author": "Dafrok <o.o@mug.dog>",
"contributors": [
"Evan Hahn <me@evanhahn.com> (https://evanhahn.com)"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/Dafrok/if-emoji/issues"
Expand Down

0 comments on commit 84b882b

Please sign in to comment.