You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Fix types (#2056)
This commit is contained in:
committed by
GitHub
parent
f926a2f777
commit
4e9fe8f53f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user