code: function promiseCallback(callback) {
    let _callbackType = _flowRuntime2.default.function();
  
    const _returnType = _flowRuntime2.default.return(_flowRuntime2.default.any());
  
    _flowRuntime2.default.param('callback', _callbackType).assert(callback);
  
    return new Promise((resolve, reject) => {
      callback(resolveFromCallback(resolve, reject));
    }).then(_arg => _returnType.assert(_arg));
  }
docs: Returns a promise
  
  The first argument is a callback with a done node-style callback
  
  @example
  import promiseCallback from 'promise-callback-factory';
  promiseCallback(done => fs.readFile('./myFile.txt', done))
  .then((txtContentBuffer) => {
  console.log(txtContentBuffer.toString());
  });
  
  @param {Function} callback callback((done) => {})
  @return {Promise}