Installation
npm install --save @types/pouchdb-adapter-localstorage
Summary
This package contains type definitions for pouchdb-adapter-localstorage (https://pouchdb.com/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouchdb-adapter-localstorage.
declare namespace PouchDB {
namespace LocalStorageAdapter {
interface LocalStorageAdapterConfiguration extends Configuration.LocalDatabaseConfiguration {
adapter: "localstorage";
}
}
interface Static {
new<Content extends {}>(
name: string | null,
options: LocalStorageAdapter.LocalStorageAdapterConfiguration,
): Database<Content>;
}
}
declare module "pouchdb-adapter-localstorage" {
const plugin: PouchDB.Plugin;
export = plugin;
}
Additional Details
Credits
These definitions were written by Simon Paulger, Brian Geppert, and Frederico Galvão.