Not able to use any methods of the pouch db

33 views
Skip to first unread message

AKASH PATEL

unread,
Feb 22, 2018, 7:23:39 PM2/22/18
to PouchDB
Using pouch db in angular 4

import * as  PouchDB from 'pouchdb'


connectCandidateDb() {
const db = new PouchDB('candidate');
return db;
}




let userDb = this.pouchService.connectUsersDb;

userDb.allDocs() gives  in [at-loader] ./ClientApp/app/components/newCandidate/newCandidate.component.ts:98:10
TS2339: Property 'allDocs' does not exist on type '() => Database<{}>'.
Reply all
Reply to author
Forward
0 new messages