Inferring a Typescript function return type based on a type parameter

后端 未结 0 460
星月不相逢
星月不相逢 2021-01-02 01:53

What is the difference in terms of type inference between the function types below? Why can the Typescript compiler infer O[K] when O is a function

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