Typescript array with union types and generics requires fields to be optional to compile

后端 未结 0 1020
误落风尘
误落风尘 2021-01-25 05:56

I\'m trying to create a map of pages for my React Router configuration under TypeScript. Since each page will be generated by different component types, and those different comp

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