Fix sudo-prompt types

This commit is contained in:
Labhansh Agrawal 2023-02-21 12:58:27 +05:30
parent c656785256
commit 591c692349

View file

@ -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;
}