TypeScript TS2585 with Promises

后端 未结 0 1049
Happy的楠姐
Happy的楠姐 2021-02-14 22:24

I am trying to use promises in TypeScript(4.1.3) with no success, I always get this error:

error TS2585: \'Promise\' only refers to a type, but is being used as a val

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