Skip to content

Commit 9706dc9

Browse files
fix(types): fix call signature for sessionBus
The `options` argument is optional, and it is an object with known properties.
1 parent 8e77b32 commit 9706dc9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

types.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ declare module 'dbus-next' {
125125
[name: string]: Function;
126126
}
127127

128+
export type AuthMethod = 'EXTERNAL' | 'DBUS_COOKIE_SHA1' | 'ANONYMOUS';
129+
130+
export interface SessionBusOptions {
131+
authMethods?: AuthMethod[];
132+
busAddress?: string;
133+
ayBuffer?: boolean;
134+
}
135+
128136
export function systemBus(): MessageBus;
129-
export function sessionBus(options: any): MessageBus;
137+
export function sessionBus(options?: SessionBusOptions): MessageBus;
130138
}

0 commit comments

Comments
 (0)