react-native-macos/local-cli/link/promisify.js

3 строки
117 B
JavaScript

module.exports = (func) => new Promise((resolve, reject) =>
func((err, res) => err ? reject(err) : resolve(res))
);