UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

38 lines (36 loc) 777 B
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. export type EmojiCategory = ( | 'recent' | 'people' | 'nature' | 'foods' | 'activity' | 'places' | 'objects' | 'symbols' | 'flags' | 'custom' ); export type CustomEmoji = { id: string; create_at: number; update_at: number; delete_at: number; creator_id: string; name: string; category: 'custom'; }; export type SystemEmoji = { filename: string; aliases: string[]; category: EmojiCategory; batch: number; }; export type Emoji = SystemEmoji | CustomEmoji; export type EmojisState = { customEmoji: { [x: string]: CustomEmoji; }; nonExistentEmoji: Set<string>; };