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