How to make TypeScript infer number & types of arguments from an array

后端 未结 0 955
野性不改
野性不改 2021-01-30 03:24

I try to create a dead-simple function that accepts:

  1. A callback
  2. An optional array of arguments to pass to the callback

The function in plain

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