How to overload optional boolean in TypeScript

后端 未结 0 1817
南旧
南旧 2020-11-27 03:00

I\'m trying to infer some types for working with a combobox component.

Basically, given a type T, the options should be T[], and an onChange

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