gilf / angular2-indexeddb

angular2-indexeddb is a library that wraps indexeddb database in an Angular service.
MIT License
88 stars 44 forks source link

README.md may not be up to date #55

Closed jubil closed 6 years ago

jubil commented 6 years ago

In the file 'README.md ' I can read:

db.openCursor('people', (evt) => {
    var cursor = evt.target.result;
    if(cursor) {
        console.log(cursor.value);
        cursor.continue();
    } else {
        console.log('Entries all displayed.');
    }
}, IDBKeyRange.bound("A", "F"));

But, I have an error on the line var cursor = evt.target.result;

gilf commented 6 years ago

@jubil, Thanks for your point. You can cast evt.target to type any to solve the problem. I'll update the readme file to express that.