You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Update types to match reality (#3271)
This commit is contained in:
committed by
GitHub
parent
0e19f8dc69
commit
f5bf6b1be6
@@ -7471,7 +7471,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|||||||
* Set the identity server URL of this client
|
* Set the identity server URL of this client
|
||||||
* @param url - New identity server URL
|
* @param url - New identity server URL
|
||||||
*/
|
*/
|
||||||
public setIdentityServerUrl(url: string): void {
|
public setIdentityServerUrl(url?: string): void {
|
||||||
this.idBaseUrl = utils.ensureNoTrailingSlash(url);
|
this.idBaseUrl = utils.ensureNoTrailingSlash(url);
|
||||||
this.http.setIdBaseUrl(this.idBaseUrl);
|
this.http.setIdBaseUrl(this.idBaseUrl);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class FetchHttpApi<O extends IHttpOpts> {
|
|||||||
* Sets the base URL for the identity server
|
* Sets the base URL for the identity server
|
||||||
* @param url - The new base url
|
* @param url - The new base url
|
||||||
*/
|
*/
|
||||||
public setIdBaseUrl(url: string): void {
|
public setIdBaseUrl(url?: string): void {
|
||||||
this.opts.idBaseUrl = url;
|
this.opts.idBaseUrl = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ export class PushProcessor {
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
public static partsForDottedKey(str: string): string[] {
|
public static partsForDottedKey(str: string): string[] {
|
||||||
const result = [];
|
const result: string[] = [];
|
||||||
|
|
||||||
// The current field and whether the previous character was the escape
|
// The current field and whether the previous character was the escape
|
||||||
// character (a backslash).
|
// character (a backslash).
|
||||||
|
|||||||
Reference in New Issue
Block a user