Created
March 29, 2019 19:42
-
-
Save MrJacz/d64f3081c1d95802b2a404c1bb5a8da5 to your computer and use it in GitHub Desktop.
there
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public someFuncName(uri, data) { | |
return new Promise((resolve, reject) => { | |
writeFile(uri, data, err => { | |
if (err) return reject(err); | |
resolve(true); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment