TypeScript - typing rest parameters and return values when wrapping a function

前端 未结 0 1464
旧时难觅i
旧时难觅i 2021-01-30 00:28

I\'d like to create a function that wraps any arbitrary function, but keeps the same type for both the arguments and the result. For instance, this would be wrapping a function

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