Done years ago of.js.org
Another exemple : await-to-js that returns the error first to enforce it to be handled :
const [error, result] = await to(getList()); if (error) ...
I like, but is not necessary why is Typescript being used (as long as the developer uses static typing)
Was about to point out it all seemed a bit like re-inventing the wheel, considering modules like this already exist.
I personally use and like await-to-js for many use cases.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Done years ago of.js.org
Another exemple : await-to-js that returns the error first to enforce it to be handled :
I like, but is not necessary why is Typescript being used (as long as the developer uses static typing)
Was about to point out it all seemed a bit like re-inventing the wheel, considering modules like this already exist.
I personally use and like await-to-js for many use cases.