forked from FoundKeyGang/FoundKey
client: fix types for instance.ts
This commit is contained in:
parent
c608f0b4c2
commit
1ed9b15342
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export async function fetchInstance(): Promise<void> {
|
||||||
|
|
||||||
export const emojiCategories = computed(() => {
|
export const emojiCategories = computed(() => {
|
||||||
if (instance.emojis == null) return [];
|
if (instance.emojis == null) return [];
|
||||||
const categories = new Set();
|
const categories = new Set<string>();
|
||||||
for (const emoji of instance.emojis) {
|
for (const emoji of instance.emojis) {
|
||||||
categories.add(emoji.category);
|
categories.add(emoji.category);
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ export const emojiCategories = computed(() => {
|
||||||
|
|
||||||
export const emojiTags = computed(() => {
|
export const emojiTags = computed(() => {
|
||||||
if (instance.emojis == null) return [];
|
if (instance.emojis == null) return [];
|
||||||
const tags = new Set();
|
const tags = new Set<string>();
|
||||||
for (const emoji of instance.emojis) {
|
for (const emoji of instance.emojis) {
|
||||||
for (const tag of emoji.aliases) {
|
for (const tag of emoji.aliases) {
|
||||||
tags.add(tag);
|
tags.add(tag);
|
||||||
|
|
Loading…
Reference in a new issue