// Type definitions for pouchdb-adapter-websql 6.1 // Project: https://pouchdb.com/, https://github.com/pouchdb/pouchdb // Definitions by: Simon Paulger , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// 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 | null, options: AdapterWebSql.Configuration): Database; } } declare module 'pouchdb-adapter-websql' { const plugin: PouchDB.Plugin; export = plugin; }