mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-10 22:56:27 +02:00
Return watchable in account data api
This commit is contained in:
parent
cd9a21ac93
commit
04379cc089
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user