Update API doc

This commit is contained in:
R Midhun Suresh
2025-10-23 23:45:36 +05:30
parent 04379cc089
commit 6b4f33bee1
@@ -27,7 +27,7 @@ export interface AccountAuthInfo {
// @public // @public
export interface AccountDataApi { export interface AccountDataApi {
delete(eventType: string): Promise<void>; delete(eventType: string): Promise<void>;
get(eventType: string): unknown; get(eventType: string): Watchable<unknown>;
set(eventType: string, content: unknown): Promise<void>; set(eventType: string, content: unknown): Promise<void>;
} }
@@ -74,7 +74,7 @@ export interface ChatExportCustomisations<ExportFormat, ExportType> {
// @public // @public
export interface ClientApi { export interface ClientApi {
getAccountDataApi: () => AccountDataApi; accountData: AccountDataApi;
getRoom: (id: string) => Room | null; getRoom: (id: string) => Room | null;
} }
@@ -384,9 +384,10 @@ export class Watchable<T> {
// //
// (undocumented) // (undocumented)
protected readonly listeners: Set<WatchFn<T>>; protected readonly listeners: Set<WatchFn<T>>;
protected onFirstWatch(): void;
protected onLastWatch(): void;
// (undocumented) // (undocumented)
unwatch(listener: (value: T) => void): void; unwatch(listener: (value: T) => void): void;
// (undocumented)
get value(): T; get value(): T;
set value(value: T); set value(value: T);
// (undocumented) // (undocumented)