We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The put() method is defined at: http://www.w3.org/TR/IndexedDB/#widl-IDBObjectStoreSync-put-any-any-value-any-key
The key is of type "any" (further specified to be an Array, Date, DOMString, float) : http://www.w3.org/TR/IndexedDB/#dfn-valid-key
Our IDBObjectStore.dart in dom/generated/src/frog has this:
_IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native;
And when using code like this:
dom.IDBRequest addRequest = objectStore.put(msg, new Date.now().value);
The editor rightly complains that "int is not assignable to IDBKey"
The text was updated successfully, but these errors were encountered:
Removed Area-UI label. Added Area-DOM label.
Sorry, something went wrong.
Marked this as blocking #1310.
Added this to the Later milestone.
Removed Area-DOM label. Added Area-HTML label.
The interface
IDBRequest put(/SerializedScriptValue/ value, [/IDBKey/ key]);
and implementation
_IDBRequestImpl put(value, [key = _default]) {
are now generated with type Dynamic.
Added Fixed label.
rakudrama
No branches or pull requests
The put() method is defined at: http://www.w3.org/TR/IndexedDB/#widl-IDBObjectStoreSync-put-any-any-value-any-key
The key is of type "any" (further specified to be an Array, Date, DOMString, float) : http://www.w3.org/TR/IndexedDB/#dfn-valid-key
Our IDBObjectStore.dart in dom/generated/src/frog has this:
_IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native;
And when using code like this:
dom.IDBRequest addRequest = objectStore.put(msg, new Date.now().value);
The editor rightly complains that "int is not assignable to IDBKey"
The text was updated successfully, but these errors were encountered: