如何根据最佳实践使用 Typescript 解构此 API 响应?
<script setup lang="ts">
// Setup Directus data fetching
const { $directus } = useNuxtApp()
import { Bestyrelse } from "~/types/bestyrelse.interface"
// Fetch bestyrelse data
const { data: bestyrelse }: Bestyrelse[] = await $directus.items("bestyrelse").readMany()
</script>
我越来越Property 'data' does not exist on type 'Bestyrelse[]'