Skip to content

Commit e80a90f

Browse files
committed
Return watchable in account data api
1 parent 652b8a7 commit e80a90f

File tree

1 file changed

+3
-2
lines changed
  • packages/element-web-module-api/src/api

1 file changed

+3
-2
lines changed

packages/element-web-module-api/src/api/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ Please see LICENSE files in the repository root for full details.
66
*/
77

88
import type { Room } from "../models/Room";
9+
import { Watchable } from "./watchable";
910

1011
/**
1112
* Modify account data stored on the homeserver.
1213
* @public
1314
*/
1415
export interface AccountDataApi {
1516
/**
16-
* Fetch account data stored from homeserver.
17+
* Returns a watchable with account data for this event type.
1718
*/
18-
get(eventType: string): unknown;
19+
get(eventType: string): Watchable<unknown>;
1920
/**
2021
* Set account data on the homeserver.
2122
*/

0 commit comments

Comments
 (0)