Is a good practice return a Promise wich value is undefined when it's resolve?

前端 未结 0 505
心在旅途
心在旅途 2020-11-28 00:47

I have written a function that pipe data to a new file, my function returns a promise.

async pipeToNewFile(fileData: string): Promise {
     const         


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