Avoiding Floating Promises in typescript. Void vs .catch When? Why?

前端 未结 0 1699
无人共我
无人共我 2020-12-17 02:17

I am fairly used to seeing promises handled in the "then catch" style in Typescript, such as:

  .findById(id)
  .then((result: something |          


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