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:
parent
fdbda9e3d6
commit
8df87ce792
10 changed files with 224 additions and 194 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue