How do I use an interface to type function arguments?

前端 未结 0 1072
攒了一身酷
攒了一身酷 2020-12-16 19:09

I have the following interface

ITle {
   type: "A" | "B";
   id: number;
}

I want to use this interface to type the argum

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