React: Accept generic interface as prop

前端 未结 0 1658
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 07:11

With Typescript in React, I wish to create a prop type that accepts a generic interface.

interface Waffle
{
  startEating: number;
  endEating: number;
  ...
         


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