Skip to content

Commit 2651e2e

Browse files
t3chguytexuf
authored andcommitted
Update types to match reality (matrix-org#3271)
1 parent 61adb84 commit 2651e2e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7471,7 +7471,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
74717471
* Set the identity server URL of this client
74727472
* @param url - New identity server URL
74737473
*/
7474-
public setIdentityServerUrl(url: string): void {
7474+
public setIdentityServerUrl(url?: string): void {
74757475
this.idBaseUrl = utils.ensureNoTrailingSlash(url);
74767476
this.http.setIdBaseUrl(this.idBaseUrl);
74777477
}

src/http-api/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class FetchHttpApi<O extends IHttpOpts> {
6666
* Sets the base URL for the identity server
6767
* @param url - The new base url
6868
*/
69-
public setIdBaseUrl(url: string): void {
69+
public setIdBaseUrl(url?: string): void {
7070
this.opts.idBaseUrl = url;
7171
}
7272

src/pushprocessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ export class PushProcessor {
589589
* @internal
590590
*/
591591
public static partsForDottedKey(str: string): string[] {
592-
const result = [];
592+
const result: string[] = [];
593593

594594
// The current field and whether the previous character was the escape
595595
// character (a backslash).

0 commit comments

Comments
 (0)