// Type definitions for pouchdb-mapreduce 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 { export interface Database { /** * Cleans up any stale map/reduce indexes. * * As design docs are deleted or modified, their associated index * files(in CouchDB) or companion databases (in local PouchDBs) continue * to take up space on disk. viewCleanup() removes these unnecessary * index files. */ viewCleanup(callback: PouchDB.Core.Callback): void; viewCleanup(): Promise; } } declare module 'pouchdb-adapter-mapreduce' { const plugin: PouchDB.Plugin; export = plugin; }