From 04379cc0897534a3c49b1953ec2597dd2c33c560 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Thu, 23 Oct 2025 23:41:08 +0530 Subject: [PATCH] Return watchable in account data api --- packages/element-web-module-api/src/api/client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/element-web-module-api/src/api/client.ts b/packages/element-web-module-api/src/api/client.ts index e670f38432..45f8e77e30 100644 --- a/packages/element-web-module-api/src/api/client.ts +++ b/packages/element-web-module-api/src/api/client.ts @@ -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; /** * Set account data on the homeserver. */