add return type
This commit is contained in:
parent
823618535f
commit
3875d3cefe
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ export const printAndDevTool = (win: BrowserWindow, error: string) => {
|
|||
};
|
||||
|
||||
/** Run a command asynchronously */
|
||||
export const execute = (command: string) => {
|
||||
export const execute = (
|
||||
command: string
|
||||
): Promise<{ stdout: string; stderr: string }> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
child_process.exec(command, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
|
|
Loading…
Reference in a new issue