custom_emoji.ts 452 B

123456789101112131415
  1. import type { RecordOf } from 'immutable';
  2. import { Record } from 'immutable';
  3. import type { ApiCustomEmojiJSON } from 'mastodon/api_types/custom_emoji';
  4. type CustomEmojiShape = Required<ApiCustomEmojiJSON>; // no changes from server shape
  5. export type CustomEmoji = RecordOf<CustomEmojiShape>;
  6. export const CustomEmojiFactory = Record<CustomEmojiShape>({
  7. shortcode: '',
  8. static_url: '',
  9. url: '',
  10. category: '',
  11. visible_in_picker: false,
  12. });