Definition of interface IDBDatabase, property objectStoreNames is wrong #3355
Labels
incompleteness
Something is missing
Library definitions
Issues or pull requests about core library definitions
The property
objectStoreNames
of IndexedDB databases is aDOMStringList
, not a string array as is set in Flow's type file https://github.com/facebook/flow/blob/v0.41.0/lib/indexeddb.js#L40I don't know why the MDN page says "obsolete, don't use" about that type - there is no way around it, that is the type of that property. I got bit by Google Chrome (latest stable release) because I tried to use array method
includes
, but I have to useDOMStringList
methodcontains
.The text was updated successfully, but these errors were encountered: