Skip to content

Remove inappropriate IDBKeyRange usages from lib.dom.d.ts. #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

mikelehen
Copy link

@mikelehen mikelehen commented Dec 19, 2018

I hit a compile error because IDBCursor.primaryKey was incorrectly typed as
IDBValidKey | IDBKeyRange instead of just IDBValidKey. I fixed it and
manually audited the rest of the instances of IDBValidKey | IDBKeyRange and
fixed them. If there's a better way to fix these other than manual audit based
on my understanding of the IndexedDB API, let me know.

Fixes microsoft/TypeScript#29070

I hit a compile error because IDBCursor.primaryKey was incorrectly typed as
`IDBValidKey | IDBKeyRange` instead of just `IDBValidKey`. I fixed it and
manually audited the rest of the instances of `IDBValidKey | IDBKeyRange` and
fixed them.  If there's a better way to fix these other than manual audit based
on my understanding of the IndexedDB API, let me know.
-
@msftclas
Copy link

msftclas commented Dec 19, 2018

CLA assistant check
All CLA requirements met.

@mikelehen
Copy link
Author

Thanks @saschanaz. Who would actually merge this? 😁

@saschanaz
Copy link
Contributor

saschanaz commented Dec 20, 2018

@DanielRosenwasser or @sandersn will do!

@sandersn sandersn merged commit ff375bf into microsoft:master Jan 24, 2019
@mikelehen
Copy link
Author

Thanks!

@mikelehen mikelehen deleted the mikelehen/fix-indexeddb-types branch January 24, 2019 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lib.dom.d.ts: IndexedDB typings: "IDBValidKey | IDBKeyRange" used instead of just "IDBValidKey" in several places
4 participants