bluebird-decorator
An ES7 decorator for ensuring that every Promise returned by a function is a Bluebird instance.
Installation
Install the package with NPM:
$ npm install bluebird-decorator
Usage
Example:
; @bluebird { return Promise } let dog = ;let promise = dog; // Return value is a Bluebird instance, not a Promise.promise; // Print "Woof!".
Also, functions that do not return a Promise instance are ignored.