JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30530
  • Score
    100M100P100Q164746F
  • License MIT

TypeScript definitions for pouchdb-adapter-idb

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/pouchdb-adapter-idb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    // Type definitions for pouchdb-adapter-idb 6.1
    // Project: https://pouchdb.com/, https://github.com/pouchdb/pouchdb
    // Definitions by: Simon Paulger <https://github.com/spaulg>, Brian Geppert <https://github.com/geppy>, Frederico Galvão <https://github.com/fredgalvao>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    /// <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

    • Last updated: Sun, 24 Sep 2023 06:37:28 GMT
    • Dependencies: @types/pouchdb-core
    • Global values: none

    Credits

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