Define Typescript return type & props

前端 未结 0 375
日久生厌
日久生厌 2020-12-01 19:21

What would be correct typescript syntax to return a type from a function, while also defining the props that it accepts?

interface Item {
  [key: string]: {
          


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