Typescript: Why is PromiseLike a possible type of this in an object in an async function?

后端 未结 0 1882
情话喂你
情话喂你 2020-12-14 03:09

I wrote this function but it throws an error and I don\'t understand why...

const createObject = async (): Promise => {
  await Promise.resol         


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