Genuinely curious but why is this important? Assuming the current API only takes an object can't you just provide 2 functions
function putString(id, s) {
storePutAPI(id, {s:s});
}
function getString(id) {
var o = storeGetAPI(id);
return o ? o.s : undefined;
}
Note I have never used the API nor looked at the docs but assuming you can store objects why the need for special functions?
On top of which AFAIK JSON.stringify and JSON.parse work with plain strings so I'd be curious what prevents using plain strings in store.js without any changes
Sorry this isn't a put down , just trying to understand
On top of which AFAIK JSON.stringify and JSON.parse work with plain strings so I'd be curious what prevents using plain strings in store.js without any changes
Sorry this isn't a put down , just trying to understand