null
* to get the entire contents of storage.
* @returns Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).
*/
get(keys?: null | string | string[] | Recordnull
to get the total usage of all of storage.
* @returns Callback with the amount of space being used by storage, or on failure (in which case $(ref:runtime.lastError)
* will be set).
*/
getBytesInUse(keys?: null | string | string[]): PromiseAn object which gives each key/value pair to update storage with. Any other key/value pairs in storage * will not be affected.
Primitive values such as numbers will serialize as expected. Values with a
* typeof
"object"
and "function"
will typically serialize to {}
,
* with the exception of Array
(serializes as expected), Date
, and Regex
* (serialize using their String
representation).
"sync"
, "local"
or "managed"
)
* the changes are for.
*/
onChanged: Events.Event<(changes: Recordsync
storage area are synced by the browser.
*/
sync: StorageArea;
/**
* Items in the local
storage area are local to each machine.
*/
local: StorageArea;
/**
* Items in the managed
storage area are set by administrators or native applications,
* and are read-only for the extension; trying to modify this namespace results in an error.
*/
managed: StorageArea;
/**
* Items in the session
storage area are kept in memory, and only until the either browser or extension is
* closed or reloaded.
*/
session: StorageArea;
}
}