Skip to content

Commit 833be72

Browse files
committed
Return a watchable
1 parent 6cf3042 commit 833be72

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/stores.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
* Provides some basic functionality of the Room List Store from element-web.
1213
* @public
1314
*/
1415
export interface RoomListStoreApi {
1516
/**
16-
* Get a flat list of sorted room from the RLS.
17+
* Returns a watchable holding a flat list of sorted room.
1718
*/
18-
getRooms(): Room[];
19+
getRooms(): Watchable<Room[]>;
1920

2021
/**
2122
* Returns a promise that resolves when RLS is ready.

0 commit comments

Comments
 (0)