mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
interface MyModel {
|
|
numericProperty: number;
|
|
}
|
|
function testConstructor(model: PouchDB.Core.Document<MyModel>) {
|
|
let db = new PouchDB<MyModel>('myDb', {
|
|
adapter: 'http',
|
|
});
|
|
db = new PouchDB<MyModel>('myDb', {
|
|
adapter: 'leveldb',
|
|
});
|
|
db.get('model').then((result) => model);
|
|
db.viewCleanup().catch((error) => {
|
|
});
|
|
}
|