@hkdigital/lib-sveltekit 0.0.58 → 0.0.59

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.
@@ -35,24 +35,6 @@ export function stringArray(value: any): void;
35
35
  * @param {*} value
36
36
  */
37
37
  export function objectArray(value: any): void;
38
- /**
39
- * Throws a validation error if value is not a Promise
40
- *
41
- * @param {*} value
42
- */
43
- export function promise_(value: any): void;
44
- /**
45
- * Throws a validation error if value is not a Map
46
- *
47
- * @param {*} value
48
- */
49
- export function map_(value: any): void;
50
- /**
51
- * Throws a validation error if value is not a Set
52
- *
53
- * @param {*} value
54
- */
55
- export function set_(value: any): void;
56
38
  /**
57
39
  * Throws a validation error if value is not an Error instance
58
40
  *
@@ -146,5 +128,23 @@ declare function array_(value: any): void;
146
128
  *
147
129
  * @param {*} value
148
130
  */
149
- declare function _function(value: any): void;
150
- export { undefined_ as undefined, object_ as object, array_ as array, _function as function, _function as function, _function as class, _class as class, promise_ as promise, map_ as map, set_ as set, error_ as error, _true as true, _true as true };
131
+ declare function function_(value: any): void;
132
+ /**
133
+ * Throws a validation error if value is not a Promise
134
+ *
135
+ * @param {*} value
136
+ */
137
+ declare function promise_(value: any): void;
138
+ /**
139
+ * Throws a validation error if value is not a Map
140
+ *
141
+ * @param {*} value
142
+ */
143
+ declare function map_(value: any): void;
144
+ /**
145
+ * Throws a validation error if value is not a Set
146
+ *
147
+ * @param {*} value
148
+ */
149
+ declare function set_(value: any): void;
150
+ export { undefined_ as undefined, object_ as object, array_ as array, function_ as function, _function as function, function_ as class, _class as class, promise_ as promise, map_ as map, set_ as set, error_ as error, _true as true, _true as true };
@@ -124,20 +124,20 @@ export function objectArray(value) {
124
124
  *
125
125
  * @param {*} value
126
126
  */
127
- function _function(value) {
127
+ function function_(value) {
128
128
  v.parse(v.function(), value);
129
129
  }
130
130
 
131
- export { _function as function };
131
+ export { function_ as function };
132
132
 
133
- export { _function as class };
133
+ export { function_ as class };
134
134
 
135
135
  /**
136
136
  * Throws a validation error if value is not a Promise
137
137
  *
138
138
  * @param {*} value
139
139
  */
140
- export function promise_(value) {
140
+ function promise_(value) {
141
141
  v.parse(v.instance(Promise), value);
142
142
  }
143
143
 
@@ -148,7 +148,7 @@ export { promise_ as promise };
148
148
  *
149
149
  * @param {*} value
150
150
  */
151
- export function map_(value) {
151
+ function map_(value) {
152
152
  v.parse(v.instance(Map), value);
153
153
  }
154
154
 
@@ -159,7 +159,7 @@ export { map_ as map };
159
159
  *
160
160
  * @param {*} value
161
161
  */
162
- export function set_(value) {
162
+ function set_(value) {
163
163
  v.parse(v.instance(Set), value);
164
164
  }
165
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "author": "Jens Kleinhout, HKdigital (https://hkdigital.nl)",
5
5
  "license": "ISC",
6
6
  "repository": {