mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 07:38:06 +01:00
15 lines
452 B
TypeScript
15 lines
452 B
TypeScript
import type { RecordOf } from 'immutable';
|
|
import { Record } from 'immutable';
|
|
|
|
import type { ApiCustomEmojiJSON } from 'mastodon/api_types/custom_emoji';
|
|
|
|
type CustomEmojiShape = Required<ApiCustomEmojiJSON>; // no changes from server shape
|
|
export type CustomEmoji = RecordOf<CustomEmojiShape>;
|
|
|
|
export const CustomEmojiFactory = Record<CustomEmojiShape>({
|
|
shortcode: '',
|
|
static_url: '',
|
|
url: '',
|
|
category: '',
|
|
visible_in_picker: false,
|
|
});
|