chore: export Emoji as explicit type

This commit is contained in:
Daniel Roe 2023-10-03 00:09:18 +01:00
parent e199e02e79
commit 12eaae6bbb

View file

@ -11,7 +11,7 @@ import TiptapMentionList from '~/components/tiptap/TiptapMentionList.vue'
import TiptapHashtagList from '~/components/tiptap/TiptapHashtagList.vue' import TiptapHashtagList from '~/components/tiptap/TiptapHashtagList.vue'
import TiptapEmojiList from '~/components/tiptap/TiptapEmojiList.vue' import TiptapEmojiList from '~/components/tiptap/TiptapEmojiList.vue'
export { Emoji } export type { Emoji }
export type CustomEmoji = (mastodon.v1.CustomEmoji & { custom: true }) export type CustomEmoji = (mastodon.v1.CustomEmoji & { custom: true })
export function isCustomEmoji(emoji: CustomEmoji | Emoji): emoji is CustomEmoji { export function isCustomEmoji(emoji: CustomEmoji | Emoji): emoji is CustomEmoji {