(fix): remove unused dependencies
Some checks failed
/ build-desktop (linux) (push) Failing after 52s
/ build-web (push) Failing after 1m3s
/ build-mobile (push) Failing after 1m6s
/ release (push) Has been skipped

(fix): remove dead code
(fix): remove unused exports
This commit is contained in:
Alois 2026-06-03 14:53:18 +02:00
commit be56080ba1
29 changed files with 168 additions and 338 deletions

View file

@ -26,9 +26,7 @@
"validate:raw": "bun run build && bun run package:linux:raw",
"validate": "if command -v nix >/dev/null 2>&1 && [ -z \"$IN_NIX_SHELL\" ]; then nix develop --command bun run validate:raw; else bun run validate:raw; fi"
},
"dependencies": {
"electron-updater": "^6.6.2"
},
"dependencies": {},
"devDependencies": {
"@types/node": "^25.9.1",
"electron": "^39.2.7",

View file

@ -12,6 +12,7 @@ import {
import { checkForUpdates } from "./updates.js";
import {
ipcChannels,
type DesktopScreenShareAudioOutput,
type DesktopScreenShareCapabilities,
} from "../shared/ipc.js";
@ -88,7 +89,7 @@ function execJson(command: string, args: string[]) {
});
}
async function listAudioOutputs() {
async function listAudioOutputs(): Promise<DesktopScreenShareAudioOutput[]> {
verboseLog("listAudioOutputs", { platform: process.platform });
if (process.platform !== "linux") return [];
@ -106,7 +107,9 @@ async function listAudioOutputs() {
if (!id || !name) return null;
return { id, name, isDefault: false };
})
.filter(Boolean);
.filter(
(output): output is DesktopScreenShareAudioOutput => output != null,
);
}
async function listScreenShareSources() {