@acodeninja/persist 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,11 +10,15 @@ import SimpleType from './SimpleType.js';
10
10
  * @extends SimpleType
11
11
  */
12
12
  class StringType extends SimpleType {
13
- /**
14
- * @static
15
- * @property {string} _type - The type identifier for the string type.
16
- */
17
- static _type = 'string';
13
+ static {
14
+ /**
15
+ * @static
16
+ * @property {string} _type - The type identifier for the string type.
17
+ */
18
+ this._type = 'string';
19
+
20
+ Object.defineProperty(this, 'name', {value: 'String'});
21
+ }
18
22
  }
19
23
 
20
24
  export default StringType;