Can typescript infer a function's response type based on parameter values?

前端 未结 0 1085
心在旅途
心在旅途 2021-02-07 06:09

I have an API with that takes a request object to get a list of records. If inlineCount is set on the request object, the API returns { results: T[], inlineCo

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