Здравствуйте
Есть такой массив:
type fruits = {
	id: string,
	data: string
}
type vegetables = {
	id: string,
	text: string
}
let arr: (fruits | vegetables)[] = [
        {id: "1", data: "sadsa"}, 
        {id: "2", text: "sdsadsa"}
]
Как из такого массива можно достать объект с параметром text, так чтоб TS не жаловался?
console.log(arr.text)