From 265ca87a907d4625368f59e6445e043e33540f3d Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 25 Apr 2023 12:32:38 +0200 Subject: [PATCH] Add documentation. --- source/item/item.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/item/item.ts b/source/item/item.ts index e04b185..b4da283 100644 --- a/source/item/item.ts +++ b/source/item/item.ts @@ -31,6 +31,13 @@ export type SerializedItem = { /** The key prefix for {@link Item}s. */ export type ItemKeyPrefix = "item-" | "history-"; +/** + * Returns the dedicated WebExtension storage area for a given + * {@link ItemKeyPrefix}. + * + * @param prefix The target {@link ItemKeyPrefix}. + * @returns The WebExtension storage area. + */ export function storageForPrefix( prefix: ItemKeyPrefix, ): browser.Storage.StorageArea {