Skip to content

Add null types to optional IDB query parameters#701

Merged
sandersn merged 2 commits intomicrosoft:masterfrom
philipwalton:idb-typings-fixes
Jun 6, 2019
Merged

Add null types to optional IDB query parameters#701
sandersn merged 2 commits intomicrosoft:masterfrom
philipwalton:idb-typings-fixes

Conversation

@philipwalton
Copy link
Copy Markdown
Contributor

@philipwalton philipwalton commented May 21, 2019

Fixes microsoft/TypeScript#31490

This PR adds null as a valid type to all IndexedDB API methods that accept an optional query param followed by another argument.

It also standardizes on the name "query" everywhere (previously it was sometimes called "query" and sometimes called "range"), as "query" is what's used in Web IDL in the spec.

Note: I was getting an error when running the build step that appears to be unrelated to my changes (it fails on master as well). I'm not sure what (if anything) I should do about that.

@sandersn
Copy link
Copy Markdown
Member

sandersn commented Jun 6, 2019

You should be able to merge from master to fix this build error.

@sandersn sandersn merged commit a209d6b into microsoft:master Jun 6, 2019
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.

Type null is missing as a query value from many IndexedDB API method

2 participants