У меня есть функция asyn c:
async getItems() : Promise<any[]> {}
, которая извлекает некоторые данные. Вызов функции для компонента Table:
dataSource={this.props.itemsStore.getItems()}
Сообщение об ошибке:
Type 'Promise<any[]>' is missing the following properties from type 'any[]': length, pop, push, concat, and 28 more.