mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
513 B
TypeScript
26 lines
513 B
TypeScript
function isBoolean(someBoolean: boolean) {
|
|
}
|
|
function isNumber(someNumber: number) {
|
|
}
|
|
function isString(someString: string) {
|
|
}
|
|
|
|
function testConstructor() {
|
|
interface MyModel {
|
|
numericProperty: number;
|
|
}
|
|
|
|
let db = new PouchDB<MyModel>(null, {
|
|
adapter: 'websql',
|
|
size: 5,
|
|
});
|
|
db = new PouchDB<MyModel>('myDb', {
|
|
adapter: 'websql',
|
|
});
|
|
|
|
db.info().then((info) => {
|
|
isBoolean(info.sqlite_plugin);
|
|
isString(info.websql_encoding);
|
|
});
|
|
}
|