@acodeninja/persist 3.3.0-next.1 → 3.3.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acodeninja/persist",
3
- "version": "3.3.0-next.1",
3
+ "version": "3.3.0",
4
4
  "description": "A JSON based data modelling and persistence module with alternate storage mechanisms.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -73,6 +73,12 @@ class Type {
73
73
  return Required;
74
74
  }
75
75
 
76
+ /**
77
+ * Returns a version of the type with a default value set.
78
+ *
79
+ * @param {*} defaultValue
80
+ * @return {Type} A subclass of the current type with `_default` set to `defaultValue`.
81
+ */
76
82
  static default(defaultValue) {
77
83
  const ThisType = this;
78
84