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

6.1.7 • Public • Published

Installation

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

Summary

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

Details

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

index.d.ts

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

declare namespace PouchDB {
    namespace Core {
        interface DatabaseInfo {
            sqlite_plugin?: boolean | undefined;
            websql_encoding?: "UTF-8" | "UTF-16" | undefined;
        }
    }

    namespace AdapterWebSql {
        interface Configuration extends Configuration.LocalDatabaseConfiguration {
            /**
             * Amount in MB to request for storage.
             */
            size?: number | undefined;
            adapter: "websql";
        }
    }

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

declare module "pouchdb-adapter-websql" {
    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-websql

Weekly Downloads

19,310

Version

6.1.7

License

MIT

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • types