(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
|
|
@ -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