1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
Michael Telatynski
2021-12-09 15:44:07 +00:00
committed by GitHub
parent f926a2f777
commit 4e9fe8f53f
4 changed files with 20 additions and 12 deletions

View File

@@ -3106,7 +3106,7 @@ export class MatrixClient extends EventEmitter {
* data event.
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
public async getAccountDataFromServer<T>(eventType: string): Promise<T> {
public async getAccountDataFromServer<T extends {[k: string]: any}>(eventType: string): Promise<T> {
if (this.isInitialSyncComplete()) {
const event = this.store.getAccountData(eventType);
if (!event) {