diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index f945db90..89be529a 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -3,6 +3,7 @@ import { DynamicScroller } from 'vue-virtual-scroller' import 'vue-virtual-scroller/dist/vue-virtual-scroller.css' import type { Paginator, WsEvents } from 'masto' +import type { UnwrapRef } from 'vue' const { paginator, @@ -23,23 +24,23 @@ const { }>() defineSlots<{ - default: { + default: (props: { items: U[] item: U index: number active?: boolean - older?: U - newer?: U // newer is undefined when index === 0 - } - items: { - items: U[] - } - updater: { + older: U + newer: U // newer is undefined when index === 0 + }) => void + items: (props: { + items: UnwrapRef + }) => void + updater: (props: { number: number update: () => void - } - loading: {} - done: {} + }) => void + loading: (props: {}) => void + done: (props: {}) => void }>() const { t } = useI18n() @@ -83,25 +84,23 @@ defineExpose({ createEntry, removeEntry, updateEntry }) page-mode > diff --git a/components/nav/NavSideItem.vue b/components/nav/NavSideItem.vue index f7aac7bd..8c5858e8 100644 --- a/components/nav/NavSideItem.vue +++ b/components/nav/NavSideItem.vue @@ -10,8 +10,8 @@ const props = withDefaults(defineProps<{ }) defineSlots<{ - icon: {} - default: {} + icon: (props: {}) => void + default: (props: {}) => void }>() const router = useRouter() diff --git a/components/notification/NotificationEnablePushNotification.client.vue b/components/notification/NotificationEnablePushNotification.client.vue index 2df3248b..378bac19 100644 --- a/components/notification/NotificationEnablePushNotification.client.vue +++ b/components/notification/NotificationEnablePushNotification.client.vue @@ -10,7 +10,7 @@ defineProps<{ defineEmits(['hide', 'subscribe']) defineSlots<{ - error: {} + error: (props: {}) => void }>() const xl = useMediaQuery('(min-width: 1280px)') diff --git a/components/notification/NotificationPaginator.vue b/components/notification/NotificationPaginator.vue index 65fc142f..1c858d60 100644 --- a/components/notification/NotificationPaginator.vue +++ b/components/notification/NotificationPaginator.vue @@ -155,14 +155,14 @@ const { clearNotifications } = useNotifications() const { formatNumber } = useHumanReadableNumber() +