Why does the Promise generic type only declare the success resolution type?

前端 未结 0 1441
醉酒成梦
醉酒成梦 2020-12-31 03:32

Say I have the following code:

function fn(): Promise {
  return new Promise((resolve, reject) => {
           


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