@twin.org/core 0.0.3-next.8 → 0.0.3

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.
Files changed (163) hide show
  1. package/README.md +1 -9
  2. package/dist/es/encoding/base32.js +1 -1
  3. package/dist/es/encoding/base32.js.map +1 -1
  4. package/dist/es/encoding/base64.js +1 -1
  5. package/dist/es/encoding/base64.js.map +1 -1
  6. package/dist/es/errors/alreadyExistsError.js +1 -1
  7. package/dist/es/errors/alreadyExistsError.js.map +1 -1
  8. package/dist/es/errors/baseError.js +1 -1
  9. package/dist/es/errors/baseError.js.map +1 -1
  10. package/dist/es/errors/conflictError.js +1 -1
  11. package/dist/es/errors/conflictError.js.map +1 -1
  12. package/dist/es/errors/generalError.js +1 -1
  13. package/dist/es/errors/generalError.js.map +1 -1
  14. package/dist/es/errors/guardError.js +1 -1
  15. package/dist/es/errors/guardError.js.map +1 -1
  16. package/dist/es/errors/notFoundError.js +1 -1
  17. package/dist/es/errors/notFoundError.js.map +1 -1
  18. package/dist/es/errors/notSupportedError.js +1 -1
  19. package/dist/es/errors/notSupportedError.js.map +1 -1
  20. package/dist/es/errors/unauthorizedError.js +2 -2
  21. package/dist/es/errors/unauthorizedError.js.map +1 -1
  22. package/dist/es/errors/unprocessableError.js +1 -1
  23. package/dist/es/errors/unprocessableError.js.map +1 -1
  24. package/dist/es/factories/factory.js +41 -0
  25. package/dist/es/factories/factory.js.map +1 -1
  26. package/dist/es/helpers/arrayHelper.js +2 -0
  27. package/dist/es/helpers/arrayHelper.js.map +1 -1
  28. package/dist/es/helpers/errorHelper.js +18 -14
  29. package/dist/es/helpers/errorHelper.js.map +1 -1
  30. package/dist/es/helpers/jsonHelper.js.map +1 -1
  31. package/dist/es/helpers/objectHelper.js +12 -36
  32. package/dist/es/helpers/objectHelper.js.map +1 -1
  33. package/dist/es/helpers/randomHelper.js +50 -2
  34. package/dist/es/helpers/randomHelper.js.map +1 -1
  35. package/dist/es/helpers/stringHelper.js +11 -0
  36. package/dist/es/helpers/stringHelper.js.map +1 -1
  37. package/dist/es/index.js +8 -1
  38. package/dist/es/index.js.map +1 -1
  39. package/dist/es/models/IComponent.js +0 -2
  40. package/dist/es/models/IComponent.js.map +1 -1
  41. package/dist/es/models/IError.js.map +1 -1
  42. package/dist/es/models/IHealth.js +2 -0
  43. package/dist/es/models/IHealth.js.map +1 -0
  44. package/dist/es/models/IMutexWorkerMessage.js +2 -0
  45. package/dist/es/models/IMutexWorkerMessage.js.map +1 -0
  46. package/dist/es/models/healthStatus.js +21 -0
  47. package/dist/es/models/healthStatus.js.map +1 -0
  48. package/dist/es/models/mutexMessageTypes.js +13 -0
  49. package/dist/es/models/mutexMessageTypes.js.map +1 -0
  50. package/dist/es/types/objectOrArray.js.map +1 -0
  51. package/dist/es/types/singleOccurrenceArray.js +2 -0
  52. package/dist/es/types/singleOccurrenceArray.js.map +1 -0
  53. package/dist/es/types/singleOccurrenceArrayDepthHelper.js +2 -0
  54. package/dist/es/types/singleOccurrenceArrayDepthHelper.js.map +1 -0
  55. package/dist/es/types/urn.js +1 -2
  56. package/dist/es/types/urn.js.map +1 -1
  57. package/dist/es/utils/asyncCache.js +236 -88
  58. package/dist/es/utils/asyncCache.js.map +1 -1
  59. package/dist/es/utils/guards.js +16 -0
  60. package/dist/es/utils/guards.js.map +1 -1
  61. package/dist/es/utils/i18n.js.map +1 -1
  62. package/dist/es/utils/is.js +16 -0
  63. package/dist/es/utils/is.js.map +1 -1
  64. package/dist/es/utils/mutex.js +185 -0
  65. package/dist/es/utils/mutex.js.map +1 -0
  66. package/dist/types/encoding/base32.d.ts +1 -1
  67. package/dist/types/errors/alreadyExistsError.d.ts +1 -1
  68. package/dist/types/errors/baseError.d.ts +1 -1
  69. package/dist/types/errors/conflictError.d.ts +1 -1
  70. package/dist/types/errors/generalError.d.ts +1 -1
  71. package/dist/types/errors/guardError.d.ts +1 -1
  72. package/dist/types/errors/notFoundError.d.ts +1 -1
  73. package/dist/types/errors/notSupportedError.d.ts +1 -1
  74. package/dist/types/errors/unauthorizedError.d.ts +2 -2
  75. package/dist/types/errors/unprocessableError.d.ts +1 -1
  76. package/dist/types/factories/factory.d.ts +23 -1
  77. package/dist/types/helpers/arrayHelper.d.ts +1 -8
  78. package/dist/types/helpers/errorHelper.d.ts +11 -4
  79. package/dist/types/helpers/objectHelper.d.ts +18 -14
  80. package/dist/types/helpers/randomHelper.d.ts +16 -0
  81. package/dist/types/helpers/stringHelper.d.ts +6 -0
  82. package/dist/types/index.d.ts +8 -1
  83. package/dist/types/models/IComponent.d.ts +12 -0
  84. package/dist/types/models/IError.d.ts +1 -1
  85. package/dist/types/models/IHealth.d.ts +32 -0
  86. package/dist/types/models/IMutexWorkerMessage.d.ts +23 -0
  87. package/dist/types/models/healthStatus.d.ts +21 -0
  88. package/dist/types/models/mutexMessageTypes.d.ts +13 -0
  89. package/dist/types/types/singleOccurrenceArray.d.ts +6 -0
  90. package/dist/types/types/singleOccurrenceArrayDepthHelper.d.ts +4 -0
  91. package/dist/types/utils/asyncCache.d.ts +11 -3
  92. package/dist/types/utils/guards.d.ts +10 -1
  93. package/dist/types/utils/is.d.ts +7 -0
  94. package/dist/types/utils/mutex.d.ts +53 -0
  95. package/docs/changelog.md +945 -216
  96. package/docs/examples.md +308 -1
  97. package/docs/reference/classes/AlreadyExistsError.md +36 -36
  98. package/docs/reference/classes/ArrayHelper.md +10 -44
  99. package/docs/reference/classes/AsyncCache.md +13 -12
  100. package/docs/reference/classes/Base32.md +4 -4
  101. package/docs/reference/classes/Base58.md +3 -3
  102. package/docs/reference/classes/Base64.md +4 -4
  103. package/docs/reference/classes/Base64Url.md +3 -3
  104. package/docs/reference/classes/BaseError.md +35 -35
  105. package/docs/reference/classes/BitString.md +6 -6
  106. package/docs/reference/classes/Coerce.md +11 -11
  107. package/docs/reference/classes/Compression.md +3 -3
  108. package/docs/reference/classes/ConflictError.md +36 -36
  109. package/docs/reference/classes/Converter.md +18 -18
  110. package/docs/reference/classes/EnvHelper.md +1 -1
  111. package/docs/reference/classes/ErrorHelper.md +20 -10
  112. package/docs/reference/classes/Factory.md +112 -18
  113. package/docs/reference/classes/FilenameHelper.md +1 -1
  114. package/docs/reference/classes/GeneralError.md +36 -36
  115. package/docs/reference/classes/GuardError.md +36 -36
  116. package/docs/reference/classes/Guards.md +72 -30
  117. package/docs/reference/classes/HexHelper.md +6 -6
  118. package/docs/reference/classes/I18n.md +14 -14
  119. package/docs/reference/classes/Is.md +67 -39
  120. package/docs/reference/classes/JsonHelper.md +10 -10
  121. package/docs/reference/classes/Mutex.md +128 -0
  122. package/docs/reference/classes/NotFoundError.md +36 -36
  123. package/docs/reference/classes/NotImplementedError.md +35 -35
  124. package/docs/reference/classes/NotSupportedError.md +36 -36
  125. package/docs/reference/classes/NumberHelper.md +2 -2
  126. package/docs/reference/classes/ObjectHelper.md +135 -73
  127. package/docs/reference/classes/RandomHelper.md +53 -1
  128. package/docs/reference/classes/SharedStore.md +3 -3
  129. package/docs/reference/classes/StringHelper.md +45 -23
  130. package/docs/reference/classes/Uint8ArrayHelper.md +1 -1
  131. package/docs/reference/classes/UnauthorizedError.md +37 -37
  132. package/docs/reference/classes/UnprocessableError.md +36 -36
  133. package/docs/reference/classes/Url.md +8 -8
  134. package/docs/reference/classes/Urn.md +24 -24
  135. package/docs/reference/classes/Validation.md +25 -25
  136. package/docs/reference/classes/ValidationError.md +35 -35
  137. package/docs/reference/index.md +9 -0
  138. package/docs/reference/interfaces/IComponent.md +40 -4
  139. package/docs/reference/interfaces/IError.md +11 -11
  140. package/docs/reference/interfaces/IHealth.md +55 -0
  141. package/docs/reference/interfaces/II18nShared.md +4 -4
  142. package/docs/reference/interfaces/IKeyValue.md +2 -2
  143. package/docs/reference/interfaces/ILabelledValue.md +2 -2
  144. package/docs/reference/interfaces/ILocale.md +2 -2
  145. package/docs/reference/interfaces/ILocaleDictionary.md +1 -1
  146. package/docs/reference/interfaces/ILocalesIndex.md +1 -1
  147. package/docs/reference/interfaces/IMutexWorkerMessage.md +35 -0
  148. package/docs/reference/interfaces/IPatchOperation.md +6 -6
  149. package/docs/reference/interfaces/IUrlParts.md +9 -9
  150. package/docs/reference/interfaces/IValidationFailure.md +4 -4
  151. package/docs/reference/type-aliases/HealthStatus.md +5 -0
  152. package/docs/reference/type-aliases/MutexMessageTypes.md +5 -0
  153. package/docs/reference/type-aliases/SingleOccurrenceArray.md +15 -0
  154. package/docs/reference/type-aliases/SingleOccurrenceArrayDepthHelper.md +19 -0
  155. package/docs/reference/variables/CoerceType.md +10 -10
  156. package/docs/reference/variables/CompressionType.md +2 -2
  157. package/docs/reference/variables/HealthStatus.md +25 -0
  158. package/docs/reference/variables/MutexMessageTypes.md +13 -0
  159. package/locales/en.json +11 -2
  160. package/package.json +6 -6
  161. package/dist/es/models/objectOrArray.js.map +0 -1
  162. /package/dist/es/{models → types}/objectOrArray.js +0 -0
  163. /package/dist/types/{models → types}/objectOrArray.d.ts +0 -0
@@ -26,7 +26,7 @@ The source of the error.
26
26
 
27
27
  `string`
28
28
 
29
- The message as a code.
29
+ The message as an i18n key.
30
30
 
31
31
  ##### notFoundId?
32
32
 
@@ -54,9 +54,9 @@ The cause of the error if we have wrapped another error.
54
54
 
55
55
  ## Properties
56
56
 
57
- ### source?
57
+ ### source? {#source}
58
58
 
59
- > `optional` **source**: `string`
59
+ > `optional` **source?**: `string`
60
60
 
61
61
  The source of the error.
62
62
 
@@ -66,9 +66,9 @@ The source of the error.
66
66
 
67
67
  ***
68
68
 
69
- ### properties?
69
+ ### properties? {#properties}
70
70
 
71
- > `optional` **properties**: `object`
71
+ > `optional` **properties?**: `object`
72
72
 
73
73
  Any additional information for the error.
74
74
 
@@ -82,9 +82,9 @@ Any additional information for the error.
82
82
 
83
83
  ***
84
84
 
85
- ### cause?
85
+ ### cause? {#cause}
86
86
 
87
- > `optional` **cause**: [`IError`](../interfaces/IError.md)
87
+ > `optional` **cause?**: [`IError`](../interfaces/IError.md)
88
88
 
89
89
  The cause of the error.
90
90
 
@@ -94,7 +94,7 @@ The cause of the error.
94
94
 
95
95
  ***
96
96
 
97
- ### CLASS\_NAME
97
+ ### CLASS\_NAME {#class_name}
98
98
 
99
99
  > `readonly` `static` **CLASS\_NAME**: `string`
100
100
 
@@ -102,7 +102,7 @@ Runtime name for the class.
102
102
 
103
103
  ## Methods
104
104
 
105
- ### fromError()
105
+ ### fromError() {#fromerror}
106
106
 
107
107
  > `static` **fromError**(`err`): [`BaseError`](BaseError.md)
108
108
 
@@ -128,7 +128,7 @@ The new instance.
128
128
 
129
129
  ***
130
130
 
131
- ### flatten()
131
+ ### flatten() {#flatten}
132
132
 
133
133
  > `static` **flatten**(`err`): [`IError`](../interfaces/IError.md)[]
134
134
 
@@ -154,7 +154,7 @@ The list of all internal errors.
154
154
 
155
155
  ***
156
156
 
157
- ### expand()
157
+ ### expand() {#expand}
158
158
 
159
159
  > `static` **expand**(`errors`): [`IError`](../interfaces/IError.md) \| `undefined`
160
160
 
@@ -164,9 +164,9 @@ Expand an error tree.
164
164
 
165
165
  ##### errors
166
166
 
167
- The list of errors to expand.
167
+ [`IError`](../interfaces/IError.md)[] \| `undefined`
168
168
 
169
- [`IError`](../interfaces/IError.md)[] | `undefined`
169
+ The list of errors to expand.
170
170
 
171
171
  #### Returns
172
172
 
@@ -180,7 +180,7 @@ The first level error.
180
180
 
181
181
  ***
182
182
 
183
- ### isErrorName()
183
+ ### isErrorName() {#iserrorname}
184
184
 
185
185
  > `static` **isErrorName**(`error`, `name`): `error is BaseError`
186
186
 
@@ -196,9 +196,9 @@ The error to test.
196
196
 
197
197
  ##### name
198
198
 
199
- The name to check for.
199
+ `string` \| `RegExp`
200
200
 
201
- `string` | `RegExp`
201
+ The name to check for.
202
202
 
203
203
  #### Returns
204
204
 
@@ -212,7 +212,7 @@ True if the error has the name.
212
212
 
213
213
  ***
214
214
 
215
- ### isErrorMessage()
215
+ ### isErrorMessage() {#iserrormessage}
216
216
 
217
217
  > `static` **isErrorMessage**(`error`, `message`): `error is BaseError`
218
218
 
@@ -228,9 +228,9 @@ The error to test.
228
228
 
229
229
  ##### message
230
230
 
231
- The message to check for.
231
+ `string` \| `RegExp`
232
232
 
233
- `string` | `RegExp`
233
+ The message to check for.
234
234
 
235
235
  #### Returns
236
236
 
@@ -244,7 +244,7 @@ True if the error has the name.
244
244
 
245
245
  ***
246
246
 
247
- ### isErrorCode()
247
+ ### isErrorCode() {#iserrorcode}
248
248
 
249
249
  > `static` **isErrorCode**(`error`, `code`): `boolean`
250
250
 
@@ -260,9 +260,9 @@ The error to test.
260
260
 
261
261
  ##### code
262
262
 
263
- The code to check for.
263
+ `string` \| `RegExp`
264
264
 
265
- `string` | `RegExp`
265
+ The code to check for.
266
266
 
267
267
  #### Returns
268
268
 
@@ -276,7 +276,7 @@ True if the error has the code.
276
276
 
277
277
  ***
278
278
 
279
- ### someErrorName()
279
+ ### someErrorName() {#someerrorname}
280
280
 
281
281
  > `static` **someErrorName**(`error`, `name`): `error is BaseError`
282
282
 
@@ -292,9 +292,9 @@ The error to test.
292
292
 
293
293
  ##### name
294
294
 
295
- The name to check for.
295
+ `string` \| `RegExp`
296
296
 
297
- `string` | `RegExp`
297
+ The name to check for.
298
298
 
299
299
  #### Returns
300
300
 
@@ -308,7 +308,7 @@ True if the error has the name.
308
308
 
309
309
  ***
310
310
 
311
- ### someErrorMessage()
311
+ ### someErrorMessage() {#someerrormessage}
312
312
 
313
313
  > `static` **someErrorMessage**(`error`, `message`): `error is BaseError`
314
314
 
@@ -324,9 +324,9 @@ The error to test.
324
324
 
325
325
  ##### message
326
326
 
327
- The message to check for.
327
+ `string` \| `RegExp`
328
328
 
329
- `string` | `RegExp`
329
+ The message to check for.
330
330
 
331
331
  #### Returns
332
332
 
@@ -340,7 +340,7 @@ True if the error has the name.
340
340
 
341
341
  ***
342
342
 
343
- ### someErrorClass()
343
+ ### someErrorClass() {#someerrorclass}
344
344
 
345
345
  > `static` **someErrorClass**(`error`, `cls`): `error is BaseError`
346
346
 
@@ -372,7 +372,7 @@ True if the error has the specific class.
372
372
 
373
373
  ***
374
374
 
375
- ### someErrorCode()
375
+ ### someErrorCode() {#someerrorcode}
376
376
 
377
377
  > `static` **someErrorCode**(`error`, `code`): `error is BaseError`
378
378
 
@@ -388,9 +388,9 @@ The error to test.
388
388
 
389
389
  ##### code
390
390
 
391
- The code to check for.
391
+ `string` \| `RegExp`
392
392
 
393
- `string` | `RegExp`
393
+ The code to check for.
394
394
 
395
395
  #### Returns
396
396
 
@@ -404,7 +404,7 @@ True if the error has the name.
404
404
 
405
405
  ***
406
406
 
407
- ### isEmpty()
407
+ ### isEmpty() {#isempty}
408
408
 
409
409
  > `static` **isEmpty**(`err`): `boolean`
410
410
 
@@ -430,7 +430,7 @@ True if the error is empty.
430
430
 
431
431
  ***
432
432
 
433
- ### isAggregateError()
433
+ ### isAggregateError() {#isaggregateerror}
434
434
 
435
435
  > `static` **isAggregateError**(`err`): `err is AggregateError`
436
436
 
@@ -456,7 +456,7 @@ True if the error is an aggregate error.
456
456
 
457
457
  ***
458
458
 
459
- ### fromAggregate()
459
+ ### fromAggregate() {#fromaggregate}
460
460
 
461
461
  > `static` **fromAggregate**(`err`, `includeStackTrace?`): [`IError`](../interfaces/IError.md)[]
462
462
 
@@ -488,7 +488,7 @@ The array of errors.
488
488
 
489
489
  ***
490
490
 
491
- ### toJsonObject()
491
+ ### toJsonObject() {#tojsonobject}
492
492
 
493
493
  > **toJsonObject**(`includeStackTrace?`): [`IError`](../interfaces/IError.md)
494
494
 
@@ -48,9 +48,9 @@ The cause of the error if we have wrapped another error.
48
48
 
49
49
  ## Properties
50
50
 
51
- ### source?
51
+ ### source? {#source}
52
52
 
53
- > `optional` **source**: `string`
53
+ > `optional` **source?**: `string`
54
54
 
55
55
  The source of the error.
56
56
 
@@ -60,9 +60,9 @@ The source of the error.
60
60
 
61
61
  ***
62
62
 
63
- ### properties?
63
+ ### properties? {#properties}
64
64
 
65
- > `optional` **properties**: `object`
65
+ > `optional` **properties?**: `object`
66
66
 
67
67
  Any additional information for the error.
68
68
 
@@ -76,9 +76,9 @@ Any additional information for the error.
76
76
 
77
77
  ***
78
78
 
79
- ### cause?
79
+ ### cause? {#cause}
80
80
 
81
- > `optional` **cause**: [`IError`](../interfaces/IError.md)
81
+ > `optional` **cause?**: [`IError`](../interfaces/IError.md)
82
82
 
83
83
  The cause of the error.
84
84
 
@@ -88,7 +88,7 @@ The cause of the error.
88
88
 
89
89
  ***
90
90
 
91
- ### CLASS\_NAME
91
+ ### CLASS\_NAME {#class_name}
92
92
 
93
93
  > `readonly` `static` **CLASS\_NAME**: `string`
94
94
 
@@ -96,7 +96,7 @@ Runtime name for the class.
96
96
 
97
97
  ## Methods
98
98
 
99
- ### fromError()
99
+ ### fromError() {#fromerror}
100
100
 
101
101
  > `static` **fromError**(`err`): [`BaseError`](BaseError.md)
102
102
 
@@ -122,7 +122,7 @@ The new instance.
122
122
 
123
123
  ***
124
124
 
125
- ### flatten()
125
+ ### flatten() {#flatten}
126
126
 
127
127
  > `static` **flatten**(`err`): [`IError`](../interfaces/IError.md)[]
128
128
 
@@ -148,7 +148,7 @@ The list of all internal errors.
148
148
 
149
149
  ***
150
150
 
151
- ### expand()
151
+ ### expand() {#expand}
152
152
 
153
153
  > `static` **expand**(`errors`): [`IError`](../interfaces/IError.md) \| `undefined`
154
154
 
@@ -158,9 +158,9 @@ Expand an error tree.
158
158
 
159
159
  ##### errors
160
160
 
161
- The list of errors to expand.
161
+ [`IError`](../interfaces/IError.md)[] \| `undefined`
162
162
 
163
- [`IError`](../interfaces/IError.md)[] | `undefined`
163
+ The list of errors to expand.
164
164
 
165
165
  #### Returns
166
166
 
@@ -174,7 +174,7 @@ The first level error.
174
174
 
175
175
  ***
176
176
 
177
- ### isErrorName()
177
+ ### isErrorName() {#iserrorname}
178
178
 
179
179
  > `static` **isErrorName**(`error`, `name`): `error is BaseError`
180
180
 
@@ -190,9 +190,9 @@ The error to test.
190
190
 
191
191
  ##### name
192
192
 
193
- The name to check for.
193
+ `string` \| `RegExp`
194
194
 
195
- `string` | `RegExp`
195
+ The name to check for.
196
196
 
197
197
  #### Returns
198
198
 
@@ -206,7 +206,7 @@ True if the error has the name.
206
206
 
207
207
  ***
208
208
 
209
- ### isErrorMessage()
209
+ ### isErrorMessage() {#iserrormessage}
210
210
 
211
211
  > `static` **isErrorMessage**(`error`, `message`): `error is BaseError`
212
212
 
@@ -222,9 +222,9 @@ The error to test.
222
222
 
223
223
  ##### message
224
224
 
225
- The message to check for.
225
+ `string` \| `RegExp`
226
226
 
227
- `string` | `RegExp`
227
+ The message to check for.
228
228
 
229
229
  #### Returns
230
230
 
@@ -238,7 +238,7 @@ True if the error has the name.
238
238
 
239
239
  ***
240
240
 
241
- ### isErrorCode()
241
+ ### isErrorCode() {#iserrorcode}
242
242
 
243
243
  > `static` **isErrorCode**(`error`, `code`): `boolean`
244
244
 
@@ -254,9 +254,9 @@ The error to test.
254
254
 
255
255
  ##### code
256
256
 
257
- The code to check for.
257
+ `string` \| `RegExp`
258
258
 
259
- `string` | `RegExp`
259
+ The code to check for.
260
260
 
261
261
  #### Returns
262
262
 
@@ -270,7 +270,7 @@ True if the error has the code.
270
270
 
271
271
  ***
272
272
 
273
- ### someErrorName()
273
+ ### someErrorName() {#someerrorname}
274
274
 
275
275
  > `static` **someErrorName**(`error`, `name`): `error is BaseError`
276
276
 
@@ -286,9 +286,9 @@ The error to test.
286
286
 
287
287
  ##### name
288
288
 
289
- The name to check for.
289
+ `string` \| `RegExp`
290
290
 
291
- `string` | `RegExp`
291
+ The name to check for.
292
292
 
293
293
  #### Returns
294
294
 
@@ -302,7 +302,7 @@ True if the error has the name.
302
302
 
303
303
  ***
304
304
 
305
- ### someErrorMessage()
305
+ ### someErrorMessage() {#someerrormessage}
306
306
 
307
307
  > `static` **someErrorMessage**(`error`, `message`): `error is BaseError`
308
308
 
@@ -318,9 +318,9 @@ The error to test.
318
318
 
319
319
  ##### message
320
320
 
321
- The message to check for.
321
+ `string` \| `RegExp`
322
322
 
323
- `string` | `RegExp`
323
+ The message to check for.
324
324
 
325
325
  #### Returns
326
326
 
@@ -334,7 +334,7 @@ True if the error has the name.
334
334
 
335
335
  ***
336
336
 
337
- ### someErrorClass()
337
+ ### someErrorClass() {#someerrorclass}
338
338
 
339
339
  > `static` **someErrorClass**(`error`, `cls`): `error is BaseError`
340
340
 
@@ -366,7 +366,7 @@ True if the error has the specific class.
366
366
 
367
367
  ***
368
368
 
369
- ### someErrorCode()
369
+ ### someErrorCode() {#someerrorcode}
370
370
 
371
371
  > `static` **someErrorCode**(`error`, `code`): `error is BaseError`
372
372
 
@@ -382,9 +382,9 @@ The error to test.
382
382
 
383
383
  ##### code
384
384
 
385
- The code to check for.
385
+ `string` \| `RegExp`
386
386
 
387
- `string` | `RegExp`
387
+ The code to check for.
388
388
 
389
389
  #### Returns
390
390
 
@@ -398,7 +398,7 @@ True if the error has the name.
398
398
 
399
399
  ***
400
400
 
401
- ### isEmpty()
401
+ ### isEmpty() {#isempty}
402
402
 
403
403
  > `static` **isEmpty**(`err`): `boolean`
404
404
 
@@ -424,7 +424,7 @@ True if the error is empty.
424
424
 
425
425
  ***
426
426
 
427
- ### isAggregateError()
427
+ ### isAggregateError() {#isaggregateerror}
428
428
 
429
429
  > `static` **isAggregateError**(`err`): `err is AggregateError`
430
430
 
@@ -450,7 +450,7 @@ True if the error is an aggregate error.
450
450
 
451
451
  ***
452
452
 
453
- ### fromAggregate()
453
+ ### fromAggregate() {#fromaggregate}
454
454
 
455
455
  > `static` **fromAggregate**(`err`, `includeStackTrace?`): [`IError`](../interfaces/IError.md)[]
456
456
 
@@ -482,7 +482,7 @@ The array of errors.
482
482
 
483
483
  ***
484
484
 
485
- ### toJsonObject()
485
+ ### toJsonObject() {#tojsonobject}
486
486
 
487
487
  > **toJsonObject**(`includeStackTrace?`): [`IError`](../interfaces/IError.md)
488
488