1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Convert real world tools to typescript

This commit is contained in:
Chocobozzz 2017-09-07 17:58:09 +02:00
parent fdbda9e3d6
commit 8df87ce792
10 changed files with 224 additions and 194 deletions

View file

@ -7,7 +7,7 @@ function getEnvCli (server?: ServerInfo) {
}
async function execCLI (command: string) {
return new Promise((res, rej) => {
return new Promise<string>((res, rej) => {
exec(command, (err, stdout, stderr) => {
if (err) return rej(err)