Open julienkermarec opened 7 years ago
Hello,
@julienkermarec have you solve this issue? im also having the same error.
No, i have always this problem.
The compilation works, but i have this typescript error
import PouchDB from "pouchdb";
import PouchCdvAdapter from "pouchdb-adapter-cordova-sqlite";
PouchDB.plugin(PouchCdvAdapter);
works for me.
@julienkermarec, hope you already solved.
This works for me:
import PouchDB from 'pouchdb';
import PouchDBAdapterCordovaSqlite from 'pouchdb-adapter-cordova-sqlite';
[...]
PouchDB.plugin(PouchDBAdapterCordovaSqlite);
[...]
this.db = new PouchDB('favoris', {adapter: 'cordova-sqlite') as any);
note the "as any"
Hello,
I have a typescript error with the cordova-sqllite adapter :
Argument of type '{adapter:"cordova-sqlite";} is not assignable to parameter of type 'FruitDOWNAdapterConfiguration' Types of property 'adapter' are incompatible. Type "cordova-sqlite" is not assignable to type '"fruitdown"'