typeguard function interface based on number of arguments with typescript

后端 未结 0 1113
臣服心动
臣服心动 2021-01-23 00:43

I would like to register callbacks. Some of them can take no argument and some can take one argument (error case for example). I would like to be able to use the typeguard syste

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