Return a Promise if export() has no callback argument
evanp opened this issue · 0 comments
evanp commented
In the absence of a callback argument, we should return a Promise
. This will allow using async/await
.
async function getNote() {
let note = as.note().name('foo').content('this is a simple note').get()
let json = await note.export()
return json
}