refactor: cleanup imports

This commit is contained in:
三咲智子 2023-01-07 02:50:31 +08:00
parent e2dc90a889
commit c7756add7d
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
10 changed files with 4 additions and 19 deletions

View file

@ -2,7 +2,7 @@
// @ts-expect-error missing types
import { DynamicScroller } from 'vue-virtual-scroller'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import type { Account, Paginator, WsEvents } from 'masto'
import type { Paginator, WsEvents } from 'masto'
const {
paginator,

View file

@ -4,9 +4,7 @@
import type { Notification, Paginator, WsEvents } from 'masto'
// type used in <template>
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import type { GroupedLikeNotifications } from '~/types'
import type { GroupedAccountLike, NotificationSlot } from '~/types'
import type { GroupedAccountLike, GroupedLikeNotifications, NotificationSlot } from '~/types'
const { paginator, stream } = defineProps<{
paginator: Paginator<any, Notification[]>

View file

@ -2,7 +2,6 @@
import { formatTimeAgo } from '@vueuse/core'
const route = useRoute()
const router = useRouter()
let draftKey = $ref('home')

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import type { History, Tag } from 'masto'
import type { Tag } from 'masto'
const { hashtag } = defineProps<{ hashtag: Tag }>()

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Card } from 'masto'
const props = defineProps<{
defineProps<{
card: Card
/** When it is root card in the list, not appear as a child card */
root?: boolean