You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/07/23 13:20:10 UTC

[GitHub] glynnbird commented on issue #102: Promise support for Nano - Issue 98

glynnbird commented on issue #102: Promise support for Nano - Issue 98
URL: https://github.com/apache/couchdb-nano/pull/102#issuecomment-407055202
 
 
   @janl The idea of #88 was to make it so that Promises could be switched on with a config flag. A neat idea, but it plays havoc when you're using it with TypeScript which likes functions to return a fixed type, so instead I wrote-up issue #98 to make Promises the default - to mirror the expectations of the modern JS/TS user. That way the return values would always be Promises, which keeps TS happy and added some extra functions which return streams to the streamy stuff. So, in short, #88 was the inspiration, but it slightly different approach won the day.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services