diff --git a/packages/element-web-module-api/element-web-module-api.api.md b/packages/element-web-module-api/element-web-module-api.api.md index 042f83601b..4fcbd748a9 100644 --- a/packages/element-web-module-api/element-web-module-api.api.md +++ b/packages/element-web-module-api/element-web-module-api.api.md @@ -27,7 +27,7 @@ export interface AccountAuthInfo { // @public export interface AccountDataApi { delete(eventType: string): Promise; - get(eventType: string): unknown; + get(eventType: string): Watchable; set(eventType: string, content: unknown): Promise; } @@ -74,7 +74,7 @@ export interface ChatExportCustomisations { // @public export interface ClientApi { - getAccountDataApi: () => AccountDataApi; + accountData: AccountDataApi; getRoom: (id: string) => Room | null; } @@ -384,9 +384,10 @@ export class Watchable { // // (undocumented) protected readonly listeners: Set>; + protected onFirstWatch(): void; + protected onLastWatch(): void; // (undocumented) unwatch(listener: (value: T) => void): void; - // (undocumented) get value(): T; set value(value: T); // (undocumented)