Add a Module API for accessing storage helper functions. (#34284)

* Add a Module API for accessing the Platform.

* Drop overkill module test

* drop unused sample file

* fix import

* Update module API

* fix typo

* fix typo again

* and again

* update api
This commit is contained in:
Will Hunt
2026-08-04 08:44:38 +00:00
committed by GitHub
parent a9dcdc067b
commit ca3cf40040
7 changed files with 83 additions and 0 deletions
@@ -63,6 +63,8 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
readonly rootNode: HTMLElement;
// @alpha
readonly settings: SettingsApi;
// @alpha
readonly storageHelper: StorageHelperApi;
readonly stores: StoresApi;
// @alpha
readonly widget: WidgetApi;
@@ -495,6 +497,11 @@ export interface SpacePanelItemProps {
tooltip?: string;
}
// @alpha
export interface StorageHelperApi {
getPickleKey(userId: string, deviceId: string): Promise<string | null>;
}
// @public
export interface StoresApi {
roomListStore: RoomListStoreApi;