Skip to content

Commit

Permalink
Export TS types for @emoji-mart/data
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Nov 27, 2022
1 parent da9c655 commit 93dffeb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/emoji-mart-data/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export interface EmojiMartData {
categories: Category[]
emojis: { [key: string]: Emoji }
aliases: { [key: string]: string }
sheet: Sheet
}

export interface Category {
id: string
emojis: string[]
}

export interface Emoji {
id: string
name: string
keywords: string[]
skins: Skin[]
version: number
emoticons?: string[]
}

export interface Skin {
unified: string
native: string
x?: number
y?: number
}

export interface Sheet {
cols: number
rows: number
}
1 change: 1 addition & 0 deletions packages/emoji-mart-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"directory": "packages/emoji-mart-data"
},
"main": "sets/14/native.json",
"types": "index.d.ts",
"scripts": {
"build": "node ./build.js"
},
Expand Down

0 comments on commit 93dffeb

Please sign in to comment.