From 591c69234923227f8d8eec5d9bd149a7d8d15b85 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Tue, 21 Feb 2023 12:58:27 +0530 Subject: [PATCH] Fix sudo-prompt types --- app/ext-modules.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/ext-modules.d.ts b/app/ext-modules.d.ts index 443d58ee..a0e18df8 100644 --- a/app/ext-modules.d.ts +++ b/app/ext-modules.d.ts @@ -6,3 +6,11 @@ declare module 'default-shell' { const val: string; export default val; } + +declare module 'sudo-prompt' { + export function exec( + cmd: string, + options: {name?: string; icns?: string; env?: {[key: string]: string}}, + callback: (error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void + ): void; +}