Closed airpingu closed 10 years ago
Please refer to [1], which proposed we should use a union type DOMString or unsigned long to specify the key in the data store. For example,
DOMString or unsigned long
typedef (DOMString or unsigned long) DataStoreKey; partial interface DataStore : EventTarget { Promise get(DataStoreKey... id); Promise put(any obj, DataStoreKey id); Promise add(any obj, optional DataStoreKey id); Promise remove(DataStoreKey id); }
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=946316
https://github.com/airpingu/data-store-api/commit/069cbd0b0717a6df3cd3f995611a636965137a31
Please refer to [1], which proposed we should use a union type
DOMString or unsigned long
to specify the key in the data store. For example,[1] https://bugzilla.mozilla.org/show_bug.cgi?id=946316