React ts Type 'Promise' is missing the following properties from type 'X'

后端 未结 0 617
太阳男子
太阳男子 2020-12-23 18:55

I am trying to to move my API request to a separate service, and faced this problem.

Here is my interface

export interface IProduct {
  id: any;
  prod         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题