2022-05-07 01:06:08 +00:00
|
|
|
import Model from '@nozbe/watermelondb/Model';
|
|
|
|
|
2022-10-21 18:27:55 +00:00
|
|
|
export interface IFrequentlyUsedEmoji {
|
2022-05-07 01:06:08 +00:00
|
|
|
content: string;
|
2022-10-21 18:27:55 +00:00
|
|
|
extension?: string;
|
2022-05-07 01:06:08 +00:00
|
|
|
isCustom: boolean;
|
|
|
|
count?: number;
|
|
|
|
}
|
|
|
|
|
2022-10-21 18:27:55 +00:00
|
|
|
type TBasicEmoji = string;
|
2021-09-13 20:41:05 +00:00
|
|
|
|
|
|
|
export interface ICustomEmoji {
|
2022-10-21 18:27:55 +00:00
|
|
|
name: string;
|
|
|
|
extension: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type IEmoji = ICustomEmoji | TBasicEmoji;
|
|
|
|
|
|
|
|
export interface ICustomEmojis {
|
|
|
|
[key: string]: ICustomEmoji;
|
2022-05-07 01:06:08 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 18:27:55 +00:00
|
|
|
export type TGetCustomEmoji = (name: string) => ICustomEmoji | null;
|
|
|
|
|
|
|
|
export type TFrequentlyUsedEmojiModel = IFrequentlyUsedEmoji & Model;
|
|
|
|
|
2022-05-07 01:06:08 +00:00
|
|
|
export interface ICustomEmojiModel {
|
|
|
|
_id: string;
|
2022-10-21 18:27:55 +00:00
|
|
|
name: string;
|
2022-05-07 01:06:08 +00:00
|
|
|
aliases?: string[];
|
|
|
|
extension: string;
|
|
|
|
_updatedAt: Date;
|
2021-09-13 20:41:05 +00:00
|
|
|
}
|
|
|
|
|
2022-05-07 01:06:08 +00:00
|
|
|
export type TCustomEmojiModel = ICustomEmojiModel & Model;
|