module.exports = (Bluebird) => {

    Promise.method = function(fn) {
        if(typeof fn !== "function") {
            throw new TypeError("Non function passed to .method");
        }
        return async function() { 
            return fn.apply(this, arguments);
        }; 
    };
};
module.exports = (Bluebird) => {

    Bluebird.method = function(fn) {
        if(typeof fn !== "function") {
            throw new TypeError("Non function passed to .method");
        }
        return async function() { 
            return fn.apply(this, arguments);
        }; 
    };
};
move Promise.method to Bluebird