Return watchable in account data api

This commit is contained in:
R Midhun Suresh 2025-10-23 23:41:08 +05:30
parent cd9a21ac93
commit 04379cc089

View File

@ -6,6 +6,7 @@ Please see LICENSE files in the repository root for full details.
*/
import type { Room } from "../models/Room";
import { Watchable } from "./watchable";
/**
* Modify account data stored on the homeserver.
@ -13,9 +14,9 @@ import type { Room } from "../models/Room";
*/
export interface AccountDataApi {
/**
* Fetch account data stored from homeserver.
* Returns a watchable with account data for this event type.
*/
get(eventType: string): unknown;
get(eventType: string): Watchable<unknown>;
/**
* Set account data on the homeserver.
*/