@naverpay/vanilla-store
Version:
  
23 lines (22 loc) • 543 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
function isSerializeValue(value) {
try {
JSON.stringify(value);
return true;
} catch (error) {
console.error(error);
return false;
}
}
class Persistent {
constructor(key, _value, typeAssertion) {
this.key = key;
this._value = _value;
this.typeAssertion = typeAssertion;
this._value = _value;
this.typeAssertion = typeAssertion;
}
}
exports.Persistent = Persistent;
exports.isSerializeValue = isSerializeValue;