@types/pouchdb-adapter-idb
TypeScript icon, indicating that this package has built-in type declarations

6.1.7 • Public • Published

Installation

npm install --save @types/pouchdb-adapter-idb

Summary

This package contains type definitions for pouchdb-adapter-idb (https://pouchdb.com/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouchdb-adapter-idb.

index.d.ts

/// <reference types="pouchdb-core" />

declare namespace PouchDB {
    namespace Core {
        interface DatabaseInfo {
            idb_attachment_format?: "base64" | "binary" | undefined;
        }
    }

    namespace IdbAdapter {
        interface IdbAdapterConfiguration extends Configuration.LocalDatabaseConfiguration {
            /**
             * Configures storage persistence.
             *
             * Only works in Firefox 26+.
             */
            storage?: "persistent" | "temporary" | undefined;
            adapter: "idb";
        }
    }

    interface Static {
        new<Content extends {}>(name: string | null, options: IdbAdapter.IdbAdapterConfiguration): Database<Content>;
    }
}

declare module "pouchdb-adapter-idb" {
    const plugin: PouchDB.Plugin;
    export = plugin;
}

Additional Details

Credits

These definitions were written by Simon Paulger, Brian Geppert, and Frederico Galvão.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pouchdb-adapter-idb

Weekly Downloads

17,330

Version

6.1.7

License

MIT

Unpacked Size

4.73 kB

Total Files

5

Last publish

Collaborators

  • types