verdnatura-chat/app/definitions/IEmoji.ts

36 lines
710 B
TypeScript
Raw Permalink Normal View History

import Model from '@nozbe/watermelondb/Model';
export interface IFrequentlyUsedEmoji {
content: string;
extension?: string;
isCustom: boolean;
count?: number;
}
type TBasicEmoji = string;
export interface ICustomEmoji {
name: string;
extension: string;
}
export type IEmoji = ICustomEmoji | TBasicEmoji;
export interface ICustomEmojis {
[key: string]: ICustomEmoji;
}
export type TGetCustomEmoji = (name: string) => ICustomEmoji | null;
export type TFrequentlyUsedEmojiModel = IFrequentlyUsedEmoji & Model;
export interface ICustomEmojiModel {
_id: string;
name: string;
aliases?: string[];
extension: string;
_updatedAt: Date;
}
export type TCustomEmojiModel = ICustomEmojiModel & Model;