WebStorage: { name: "WebStorage"; options: { storage: { description: "The Storage to use. Defaults to globalThis.localStorage."; required: false; type: "object"; }; }; create(__namedParameters): StoreFS<WebStorageStore>; isAvailable(storage?): boolean; } = ... Type declaration
Readonly
name: "WebStorage"
Readonly
options: {
storage: {
description: "The Storage to use. Defaults to globalThis.localStorage.";
required: false;
type: "object";
};
}
Readonly
storage: {
description: "The Storage to use. Defaults to globalThis.localStorage.";
required: false;
type: "object";
}
Readonly
description: "The Storage to use. Defaults to globalThis.localStorage."
Readonly
required: false
Readonly
type: "object"
create:function
isAvailable:function
- isAvailable(storage?): boolean
Parameters
- storage: Storage = globalThis.localStorage
Returns boolean
A synchronous file system backed by a
Storage
(e.g. localStorage).