Vue and TypeScript
Learn you a TypeScript for better Vue Instruct Vue on the component to use TypeScript and type up the export default by wrapping it in defineComponent()
Props <script lang="ts"> import { defineComponent } from 'vue' import type { PropType } from 'vue' type Restaurant = { id: string name: string address: string website: string status: string } export default defineComponent({ props: { restaurant: { type: Object as PropType<Restaurant> } } }) .