Open LubanSeven opened 5 years ago
Seems it can't, but you can write your own wrapped function like following:
const jsonpFetch = (url, options) => new Promise((resolve, reject) => jsonp(url, options, (err, data) => err ? reject(err) : resolve(data)));
...or just use some another jsonp package.
hello, can jsonp function return new promise ?