Skip to content
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

IDBObjectStore keyPath missing null type. #61209

Open
6XGate opened this issue Feb 18, 2025 · 0 comments
Open

IDBObjectStore keyPath missing null type. #61209

6XGate opened this issue Feb 18, 2025 · 0 comments

Comments

@6XGate
Copy link

6XGate commented Feb 18, 2025

🔎 Search Terms

  • IDBObjectStore
  • IDBKeyPath
  • keyPath

🕗 Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about IDBObjectStore keyPath.

🙁 Actual behavior

IDBObjectStore instance member keyPath does not include null in its union of types.

🙂 Expected behavior

All versions of the IndexedDB specification has stated that keyPath will be the key path value provided at time of store creation, or null if not specified or when using a key generation such as autoIncrement. The type should be string | string[] | null.

Additional information about the issue

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

No branches or pull requests

1 participant