fix: type errors (#802)

This commit is contained in:
三咲智子 Kevin Deng 2023-01-06 00:48:20 +08:00 committed by GitHub
parent 272fb4a13d
commit acdb94de62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 113 additions and 74 deletions

View file

@ -1,5 +1,4 @@
<script setup lang="ts">
import type { Status } from 'masto'
import type { ComponentPublicInstance } from 'vue'
definePageMeta({
@ -93,7 +92,7 @@ onReactivated(() => {
</template>
</div>
<StatusNotFound v-else :account="route.params.account" :status="id" />
<StatusNotFound v-else :account="route.params.account as string" :status="id" />
</template>
<StatusCardSkeleton v-else border="b base" />

View file

@ -16,7 +16,7 @@ if (account) {
</script>
<template>
<template v-if="account">
<template v-if="paginator">
<AccountPaginator :paginator="paginator" />
</template>
</template>

View file

@ -16,7 +16,7 @@ if (account) {
</script>
<template>
<template v-if="account">
<template v-if="paginator">
<AccountPaginator :paginator="paginator" />
</template>
</template>

View file

@ -32,8 +32,10 @@ onReactivated(() => {
<span text-lg font-bold>#{{ tagName }}</span>
</template>
<template v-if="typeof tag?.following === 'boolean'" #actions>
<TagActionButton :tag="tag" @change="refresh()" />
<template #actions>
<template v-if="typeof tag?.following === 'boolean'">
<TagActionButton :tag="tag" @change="refresh()" />
</template>
</template>
<slot>