Add documentation.
This commit is contained in:
parent
e266e9dd7b
commit
265ca87a90
|
@ -31,6 +31,13 @@ export type SerializedItem = {
|
||||||
/** The key prefix for {@link Item}s. */
|
/** The key prefix for {@link Item}s. */
|
||||||
export type ItemKeyPrefix = "item-" | "history-";
|
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(
|
export function storageForPrefix(
|
||||||
prefix: ItemKeyPrefix,
|
prefix: ItemKeyPrefix,
|
||||||
): browser.Storage.StorageArea {
|
): browser.Storage.StorageArea {
|
||||||
|
|
Loading…
Reference in New Issue