Check out this code snippet
<tr v-for="(item, index) in items">
<td>{{ index + 1 }}</td>
<td>{{ item.timestamp }}</td>
<td>{{ item.type }}</td>
<td>{{ item.message }}</td>
</tr>
defineProps({
items: {
type: [Array],
required: true
}
})
Sample data for 'item' is as follows:
{ timestamp : "2024-05-07 08:51:06",
type : "INFO",
message : "Example message here"
}
I'm still learning about TypeScript and encountering a warning during build for 'item.timestamp', 'item.type' and 'item.message'
The warning states that 'item' is of type 'unknown'
What should be the correct type for 'items' in this case?