diff --git a/daemon/workers/denoRun.ts b/daemon/workers/denoRun.ts index bf48d1fc2..ca31b467d 100644 --- a/daemon/workers/denoRun.ts +++ b/daemon/workers/denoRun.ts @@ -21,7 +21,7 @@ const buildPermissionsArgs = ( for (const [key, value] of Object.entries(perm)) { if (value === "inherit") { permCache[key] ??= Deno.permissions.querySync({ - name: key as keyof Deno.PermissionOptionsObject, + name: key as Deno.PermissionDescriptor["name"], }).state; const access = permCache[key]; access === "granted" && args.push(`--allow-${key}`);