♻️ Fully typed API

This commit is contained in:
2025-09-19 01:21:38 +08:00
parent 7904ce9ca7
commit 60e8b1dcfb
13 changed files with 276 additions and 26 deletions

View File

@@ -6,8 +6,9 @@
<script lang="ts" setup>
import { computed } from 'vue'
import type { SnAttachment } from '~/types/api'
const props = defineProps<{ item: any }>()
const props = defineProps<{ item: SnAttachment }>()
const itemType = computed(() => props.item.mime_type.split('/')[0] ?? 'unknown')