From e395a5e50c979e5da18f98e02d18d8dc879b2369 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 8 Dec 2023 12:47:22 -0800 Subject: [PATCH] types: Add basic types --- README.md | 1 - dist/index.d.ts | 3 +++ package.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 dist/index.d.ts diff --git a/README.md b/README.md index f635325..be0167a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ If you are looking for the unicode emoji dataset, including version, grouping, o ## Migrating from 2.x - Previously: ```js diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..c986974 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +declare const Emojilib: Record + +export default Emojilib diff --git a/package.json b/package.json index 0ba74b8..b01ed79 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "3.0.11", "description": "Emoji keyword library.", "main": "dist/emoji-en-US.json", + "types": "dist/index.d.ts", "files": [ "dist" ],