small fix

This commit is contained in:
Aylur
2023-10-11 01:36:22 +02:00
parent 38c4c4d996
commit 70b8966b2c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class AudioService extends Service {
this._streams = new Map();
this._streamBindings = new Map();
bulkConnect((this._control as unknown) as GObject.Object, [
bulkConnect(this._control as unknown as GObject.Object, [
['default-sink-changed', (_c, id: number) => this._defaultChanged(id, 'speaker')],
['default-source-changed', (_c, id: number) => this._defaultChanged(id, 'microphone')],
['stream-added', this._streamAdded.bind(this)],
+2 -1
View File
@@ -72,7 +72,8 @@ export function bulkConnect(
service: GObject.Object,
list: [
event: string,
callback: (...args: unknown[]) => void
// eslint-disable-next-line @typescript-eslint/no-explicit-any
callback: (...args: any[]) => void
][],
) {
const ids = [];