mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-04 21:19:53 +08:00
24 lines
498 B
TypeScript
24 lines
498 B
TypeScript
function isBoolean(someBoolean: boolean) {
|
|
}
|
|
function isNumber(someNumber: number) {
|
|
}
|
|
function isString(someString: string) {
|
|
}
|
|
|
|
function testConstructor() {
|
|
type 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);
|
|
});
|
|
}
|