mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Update API doc
This commit is contained in:
parent
04379cc089
commit
6b4f33bee1
@ -27,7 +27,7 @@ export interface AccountAuthInfo {
|
||||
// @public
|
||||
export interface AccountDataApi {
|
||||
delete(eventType: string): Promise<void>;
|
||||
get(eventType: string): unknown;
|
||||
get(eventType: string): Watchable<unknown>;
|
||||
set(eventType: string, content: unknown): Promise<void>;
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ export interface ChatExportCustomisations<ExportFormat, ExportType> {
|
||||
|
||||
// @public
|
||||
export interface ClientApi {
|
||||
getAccountDataApi: () => AccountDataApi;
|
||||
accountData: AccountDataApi;
|
||||
getRoom: (id: string) => Room | null;
|
||||
}
|
||||
|
||||
@ -384,9 +384,10 @@ export class Watchable<T> {
|
||||
//
|
||||
// (undocumented)
|
||||
protected readonly listeners: Set<WatchFn<T>>;
|
||||
protected onFirstWatch(): void;
|
||||
protected onLastWatch(): void;
|
||||
// (undocumented)
|
||||
unwatch(listener: (value: T) => void): void;
|
||||
// (undocumented)
|
||||
get value(): T;
|
||||
set value(value: T);
|
||||
// (undocumented)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user