mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Return watchable in account data api
This commit is contained in:
@@ -6,6 +6,7 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Room } from "../models/Room";
|
import type { Room } from "../models/Room";
|
||||||
|
import { Watchable } from "./watchable";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify account data stored on the homeserver.
|
* Modify account data stored on the homeserver.
|
||||||
@@ -13,9 +14,9 @@ import type { Room } from "../models/Room";
|
|||||||
*/
|
*/
|
||||||
export interface AccountDataApi {
|
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.
|
* Set account data on the homeserver.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user