Currently, I am working with Vuetify and Inertia while using Typescript.
I am faced with the challenge of passing shared data to the items prop of a vuetify AutoComplete component:
<v-autocomplete :items="$page.props.countries"></v-autocomplete>
However, TypeScript is notifying me with the following error message:
Type unknown is not assignable to type readonly any[] | undefined
The array named countries
contains objects.
How can I specify its type correctly?
Thank you