node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

Documentation example typo/bug

Open stevexm opened this issue 5 years ago • 0 comments

Hi, minor issue in the "Add asynchronous line by line processing support" (link to example) documentation.

The feature detail example:.

csv()
.fromFile(csvFilePath)
.subscribe((json,lineNumber)=>{
        return Promise((resolve,reject)=>{
  })
},onError, onComplete)

Need to return a "new" Promise:

csv()
.fromFile(csvFilePath)
.subscribe((json,lineNumber)=>{
        return new Promise((resolve,reject)=>{
  })
},onError, onComplete)

Thank you.

stevexm avatar Jan 20 '20 00:01 stevexm