Can't set empty object as default value for param with type Record

后端 未结 0 1263
广开言路
广开言路 2021-02-06 18:16
type SimpleObject = Record
(param: T = {}) => param
                         ^^^^^^^^^^^^^ 

TS2322:

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