Files
DefinitelyTyped/pouchdb-http/pouchdb-http-tests.ts
geppy a396c170ba Pouchdb (#10171)
* Started definitions for multi-module PouchDB

* Fixed whitespace

* Updated PouchDB definitions for v5.4.4.
2016-07-23 23:45:00 -07:00

15 lines
417 B
TypeScript

/// <reference path="../pouchdb-core/pouchdb-core.d.ts" />
/// <reference path="./pouchdb-http.d.ts" />
namespace PouchDBHttpTests {
function testConstructor() {
type MyModel = { numericProperty: number };
let model: PouchDB.Core.Document<MyModel>;
let db = new PouchDB<MyModel>('myDb', {
adapter: 'http',
});
db.get('model').then((result) => model);
}
}