You've already forked matrix-js-sdk
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user