UNPKG

@naverpay/vanilla-store

Version:

![NPM Version](https://img.shields.io/npm/v/%40naverpay%2Fvanilla-store) ![NPM bundle size](https://img.shields.io/bundlephobia/min/%40naverpay%2Fvanilla-store) ![NPM Downloads](https://img.shields.io/npm/dw/%40naverpay%2Fvanilla-store)

23 lines (22 loc) 543 B
"use strict"; 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;