(fix): remove unused dependencies
(fix): remove dead code (fix): remove unused exports
This commit is contained in:
parent
2a8fade420
commit
be56080ba1
29 changed files with 168 additions and 338 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue