-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.ts
26 lines (26 loc) · 1.1 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* emoji-test: https://unicode.org/Public/emoji/14.0/emoji-test.txt
* cldr-annotations: https://raw.githubusercontent.com/unicode-org/cldr-json/main/cldr-json/cldr-annotations-full/annotations/en/annotations.json
* Unicode/Emoji Versioning: https://unicode.org/reports/tr51/proposed.html#Versioning
*
* @property emoji - The actual emoji char (emoji-test)
* @property description - A description of the emoji (emoji-test)
* @property group - For categorizartion (emoji-test)
* @property subgroup - For categorizartion (emoji-test)
* @property emojiVersion - Emoji version emoji was introduced (emoji-test)
* @property unicodeVersion - Unicode version emoji was introduced (Unicode/Emoji Versioning)
* @property tags - Related keywords (cldr-annotations)
* @property aliases - Unique identifier (cldr-annotations)
* @property skinTones - Whether emoji has skin-tone variants (emoji-test)
*/
export interface Emoji {
emoji: string;
description: string;
group: string;
subgroup: string;
emojiVersion: number;
unicodeVersion: number;
tags: string[];
aliases: string[];
skinTones?: boolean;
}