Skip to content

Commit 734d8a9

Browse files
committed
Update API doc
1 parent e80a90f commit 734d8a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/element-web-module-api/element-web-module-api.api.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface AccountAuthInfo {
2727
// @public
2828
export interface AccountDataApi {
2929
delete(eventType: string): Promise<void>;
30-
get(eventType: string): unknown;
30+
get(eventType: string): Watchable<unknown>;
3131
set(eventType: string, content: unknown): Promise<void>;
3232
}
3333

@@ -74,7 +74,7 @@ export interface ChatExportCustomisations<ExportFormat, ExportType> {
7474

7575
// @public
7676
export interface ClientApi {
77-
getAccountDataApi: () => AccountDataApi;
77+
accountData: AccountDataApi;
7878
getRoom: (id: string) => Room | null;
7979
}
8080

@@ -384,9 +384,10 @@ export class Watchable<T> {
384384
//
385385
// (undocumented)
386386
protected readonly listeners: Set<WatchFn<T>>;
387+
protected onFirstWatch(): void;
388+
protected onLastWatch(): void;
387389
// (undocumented)
388390
unwatch(listener: (value: T) => void): void;
389-
// (undocumented)
390391
get value(): T;
391392
set value(value: T);
392393
// (undocumented)

0 commit comments

Comments
 (0)