interface MyModel { numericProperty: number; } function testConstructor(model: PouchDB.Core.Document) { let db = new PouchDB(null, { adapter: 'idb', }); db = new PouchDB('myDb', { adapter: 'http', }); db.get('model').then((result) => model); db.viewCleanup().catch((error) => { }); }