Typescript, define a generic instead object

前端 未结 0 451
梦如初夏
梦如初夏 2020-12-13 02:10

Currently I have this interfaces:

export interface requestPayload {
  agentId: string;
}

export interface Agent {
  id: string;
  name: string;
  requestPayl         


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