1.0.4 • Published 6 months ago

@types/pouchdb-adapter-cordova-sqlite v1.0.4

Weekly downloads
9,304
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/pouchdb-adapter-cordova-sqlite

Summary

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

Details

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

index.d.ts

// Type definitions for pouchdb-adapter-sqlite 1.0
// Project: https://pouchdb.com/, https://github.com/pouchdb/pouchdb, https://github.com/pouchdb-community/pouchdb-adapter-cordova-sqlite
// Definitions by: Simon Paulger <https://github.com/spaulg>, Brian Geppert <https://github.com/geppy>, Frederico Galvão <https://github.com/fredgalvao>, Matthew Paul <https://github.com/coffeymatt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

declare namespace PouchDB {
    namespace AdapterCordovaSqlite {
        interface Configuration extends Configuration.LocalDatabaseConfiguration {
            /**
             * Location of database e.g. 'Default'.
             */
            location?: string | undefined;

            /**
             * Location of database e.g. 'Default'. Only use 'location' or 'iosDatabaseLocation' not both.
             */
            iosDatabaseLocation?: string | undefined;

            /**
             * Version of android database to use.
             */
            androidDatabaseImplementation?: number | undefined;

            /**
             * Enable autocompation of database.
             */
            auto_compaction?: boolean | undefined;

            adapter: 'cordova-sqlite';
        }
    }

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

declare module 'pouchdb-adapter-cordova-sqlite' {
    const plugin: PouchDB.Plugin;
    export = plugin;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:46 GMT
  • Dependencies: @types/pouchdb-core
  • Global values: none

Credits

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

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

5 years ago