12345678910111213141516171819202122232425262728293031 |
- // Generated by typings
- // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/a396c170ba4b6a7f45b20fccbdba0d2b81cc8833/pouchdb-adapter-websql/pouchdb-adapter-websql.d.ts
- declare namespace PouchDB {
- namespace Core {
- interface DatabaseInfo {
- sqlite_plugin?: boolean;
- websql_encoding?: 'UTF-8' | 'UTF-16';
- }
- }
- namespace AdapterWebSql {
- interface Configuration
- extends Configuration.LocalDatabaseConfiguration {
- /**
- * Amount in MB to request for storage.
- */
- size?: number;
- adapter: 'websql';
- }
- }
- interface Static {
- new<Content extends Core.Encodable>(name: string | void,
- options: AdapterWebSql.Configuration): Database<Content>;
- }
- }
- declare module 'pouchdb-adapter-websql' {
- const plugin: PouchDB.Plugin;
- export = plugin;
- }
|