1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

TypeScript: opts parameter of client.startClient is optional (#2106)

This commit is contained in:
Christian Paul
2022-02-02 16:29:58 +01:00
committed by GitHub
parent 34a3955b60
commit cf0ccaf93d

View File

@@ -1009,7 +1009,7 @@ export class MatrixClient extends EventEmitter {
* state change events. * state change events.
* @param {Object=} opts Options to apply when syncing. * @param {Object=} opts Options to apply when syncing.
*/ */
public async startClient(opts: IStartClientOpts): Promise<void> { public async startClient(opts?: IStartClientOpts): Promise<void> {
if (this.clientRunning) { if (this.clientRunning) {
// client is already running. // client is already running.
return; return;