Skip to content

IDBObjectStore keyPath missing null type. #61209

Open
@6XGate

Description

@6XGate

🔎 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions