Files
ThreadNet-Web/apps/web/src/modules/StorageHelperApi.ts
T
Will HuntandGitHub ca3cf40040 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
2026-08-04 08:44:38 +00:00

16 lines
565 B
TypeScript

/*
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
import type { StorageHelperApi as IStorageHelperApi } from "@element-hq/element-web-module-api";
import PlatformPeg from "../PlatformPeg";
export class StorageHelperApi implements IStorageHelperApi {
public async getPickleKey(userId: string, deviceId: string): Promise<string | null> {
return PlatformPeg.get()!.getPickleKey(userId, deviceId);
}
}