client: fix types for instance.ts
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Norm 2022-09-26 15:05:35 -04:00
parent c608f0b4c2
commit 1ed9b15342
Signed by: norm
GPG key ID: 7123E30E441E80DE

View file

@ -26,7 +26,7 @@ export async function fetchInstance(): Promise<void> {
export const emojiCategories = computed(() => {
if (instance.emojis == null) return [];
const categories = new Set();
const categories = new Set<string>();
for (const emoji of instance.emojis) {
categories.add(emoji.category);
}
@ -35,7 +35,7 @@ export const emojiCategories = computed(() => {
export const emojiTags = computed(() => {
if (instance.emojis == null) return [];
const tags = new Set();
const tags = new Set<string>();
for (const emoji of instance.emojis) {
for (const tag of emoji.aliases) {
tags.add(tag);