// Type definitions for pouchdb-adapter-websql v5.4.4 // Project: https://pouchdb.com/ // Definitions by: Andy Brown , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// 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(name: string | void, options: AdapterWebSql.Configuration): Database; } } declare module 'pouchdb-adapter-websql' { const plugin: PouchDB.Plugin; export = plugin; }