mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
* Started definitions for multi-module PouchDB * Fixed whitespace * Updated PouchDB definitions for v5.4.4.
13 lines
350 B
TypeScript
13 lines
350 B
TypeScript
/// <reference path="../pouchdb-mapreduce/pouchdb-mapreduce.d.ts" />
|
|
|
|
namespace PouchDBBrowserTests {
|
|
function testConstructor() {
|
|
type MyModel = { numericProperty: number };
|
|
let model: PouchDB.Core.Document<MyModel>;
|
|
|
|
let db = new PouchDB<MyModel>('mydb');
|
|
db.viewCleanup().catch((error) => {
|
|
});
|
|
}
|
|
}
|