In my component, I have this element
One of its attributes has a specific format
interface IItem {
itemName: string
itemNumber: string
barcode: string
}
data = {
date: [],
items: [],
format: 1,
category: null,
selected_item: Array<IItem>
}
However, I believe that this approach to defining types is not entirely accurate
As a result, I am encountering an issue,
https://i.sstatic.net/47LX4.png
So, how can I properly specify the type for these object properties?