@twin.org/core 0.0.3-next.22 → 0.0.3-next.24
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/README.md +1 -9
- package/dist/es/encoding/base32.js +1 -1
- package/dist/es/encoding/base32.js.map +1 -1
- package/dist/es/helpers/arrayHelper.js.map +1 -1
- package/dist/es/index.js +2 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/types/objectOrArray.js.map +1 -0
- package/dist/es/types/singleOccurrenceArray.js +2 -0
- package/dist/es/types/singleOccurrenceArray.js.map +1 -0
- package/dist/es/utils/guards.js.map +1 -1
- package/dist/types/encoding/base32.d.ts +1 -1
- package/dist/types/helpers/arrayHelper.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/types/singleOccurrenceArray.d.ts +9 -0
- package/dist/types/utils/guards.d.ts +1 -1
- package/docs/changelog.md +36 -1
- package/docs/examples.md +308 -1
- package/docs/reference/classes/AlreadyExistsError.md +35 -35
- package/docs/reference/classes/ArrayHelper.md +2 -2
- package/docs/reference/classes/AsyncCache.md +8 -8
- package/docs/reference/classes/Base32.md +4 -4
- package/docs/reference/classes/Base58.md +3 -3
- package/docs/reference/classes/Base64.md +4 -4
- package/docs/reference/classes/Base64Url.md +3 -3
- package/docs/reference/classes/BaseError.md +34 -34
- package/docs/reference/classes/BitString.md +6 -6
- package/docs/reference/classes/Coerce.md +11 -11
- package/docs/reference/classes/Compression.md +3 -3
- package/docs/reference/classes/ConflictError.md +35 -35
- package/docs/reference/classes/Converter.md +18 -18
- package/docs/reference/classes/EnvHelper.md +1 -1
- package/docs/reference/classes/ErrorHelper.md +3 -3
- package/docs/reference/classes/Factory.md +20 -20
- package/docs/reference/classes/FilenameHelper.md +1 -1
- package/docs/reference/classes/GeneralError.md +35 -35
- package/docs/reference/classes/GuardError.md +35 -35
- package/docs/reference/classes/Guards.md +33 -33
- package/docs/reference/classes/HexHelper.md +6 -6
- package/docs/reference/classes/I18n.md +14 -14
- package/docs/reference/classes/Is.md +42 -42
- package/docs/reference/classes/JsonHelper.md +10 -10
- package/docs/reference/classes/NotFoundError.md +35 -35
- package/docs/reference/classes/NotImplementedError.md +35 -35
- package/docs/reference/classes/NotSupportedError.md +35 -35
- package/docs/reference/classes/NumberHelper.md +2 -2
- package/docs/reference/classes/ObjectHelper.md +32 -32
- package/docs/reference/classes/RandomHelper.md +8 -8
- package/docs/reference/classes/SharedStore.md +3 -3
- package/docs/reference/classes/StringHelper.md +23 -23
- package/docs/reference/classes/Uint8ArrayHelper.md +1 -1
- package/docs/reference/classes/UnauthorizedError.md +35 -35
- package/docs/reference/classes/UnprocessableError.md +35 -35
- package/docs/reference/classes/Url.md +8 -8
- package/docs/reference/classes/Urn.md +24 -24
- package/docs/reference/classes/Validation.md +25 -25
- package/docs/reference/classes/ValidationError.md +35 -35
- package/docs/reference/index.md +2 -0
- package/docs/reference/interfaces/IComponent.md +4 -4
- package/docs/reference/interfaces/IError.md +10 -10
- package/docs/reference/interfaces/II18nShared.md +4 -4
- package/docs/reference/interfaces/IKeyValue.md +2 -2
- package/docs/reference/interfaces/ILabelledValue.md +2 -2
- package/docs/reference/interfaces/ILocale.md +2 -2
- package/docs/reference/interfaces/ILocaleDictionary.md +1 -1
- package/docs/reference/interfaces/ILocalesIndex.md +1 -1
- package/docs/reference/interfaces/IPatchOperation.md +6 -6
- package/docs/reference/interfaces/IUrlParts.md +9 -9
- package/docs/reference/interfaces/IValidationFailure.md +4 -4
- package/docs/reference/type-aliases/SingleOccurrenceArray.md +15 -0
- package/docs/reference/type-aliases/SingleOccurrenceArrayDepthHelper.md +19 -0
- package/docs/reference/variables/CoerceType.md +10 -10
- package/docs/reference/variables/CompressionType.md +2 -2
- package/package.json +4 -4
- package/dist/es/models/objectOrArray.js.map +0 -1
- /package/dist/es/{models → types}/objectOrArray.js +0 -0
- /package/dist/types/{models → types}/objectOrArray.d.ts +0 -0
|
@@ -44,9 +44,9 @@ The validation failures.
|
|
|
44
44
|
|
|
45
45
|
## Properties
|
|
46
46
|
|
|
47
|
-
### source?
|
|
47
|
+
### source? {#source}
|
|
48
48
|
|
|
49
|
-
> `optional` **source
|
|
49
|
+
> `optional` **source?**: `string`
|
|
50
50
|
|
|
51
51
|
The source of the error.
|
|
52
52
|
|
|
@@ -56,9 +56,9 @@ The source of the error.
|
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
|
-
### properties?
|
|
59
|
+
### properties? {#properties}
|
|
60
60
|
|
|
61
|
-
> `optional` **properties
|
|
61
|
+
> `optional` **properties?**: `object`
|
|
62
62
|
|
|
63
63
|
Any additional information for the error.
|
|
64
64
|
|
|
@@ -72,9 +72,9 @@ Any additional information for the error.
|
|
|
72
72
|
|
|
73
73
|
***
|
|
74
74
|
|
|
75
|
-
### cause?
|
|
75
|
+
### cause? {#cause}
|
|
76
76
|
|
|
77
|
-
> `optional` **cause
|
|
77
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
78
78
|
|
|
79
79
|
The cause of the error.
|
|
80
80
|
|
|
@@ -84,7 +84,7 @@ The cause of the error.
|
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
87
|
-
### CLASS\_NAME
|
|
87
|
+
### CLASS\_NAME {#class_name}
|
|
88
88
|
|
|
89
89
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
90
90
|
|
|
@@ -92,7 +92,7 @@ Runtime name for the class.s
|
|
|
92
92
|
|
|
93
93
|
## Methods
|
|
94
94
|
|
|
95
|
-
### fromError()
|
|
95
|
+
### fromError() {#fromerror}
|
|
96
96
|
|
|
97
97
|
> `static` **fromError**(`err`): [`BaseError`](BaseError.md)
|
|
98
98
|
|
|
@@ -118,7 +118,7 @@ The new instance.
|
|
|
118
118
|
|
|
119
119
|
***
|
|
120
120
|
|
|
121
|
-
### flatten()
|
|
121
|
+
### flatten() {#flatten}
|
|
122
122
|
|
|
123
123
|
> `static` **flatten**(`err`): [`IError`](../interfaces/IError.md)[]
|
|
124
124
|
|
|
@@ -144,7 +144,7 @@ The list of all internal errors.
|
|
|
144
144
|
|
|
145
145
|
***
|
|
146
146
|
|
|
147
|
-
### expand()
|
|
147
|
+
### expand() {#expand}
|
|
148
148
|
|
|
149
149
|
> `static` **expand**(`errors`): [`IError`](../interfaces/IError.md) \| `undefined`
|
|
150
150
|
|
|
@@ -154,9 +154,9 @@ Expand an error tree.
|
|
|
154
154
|
|
|
155
155
|
##### errors
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
[`IError`](../interfaces/IError.md)[] \| `undefined`
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
The list of errors to expand.
|
|
160
160
|
|
|
161
161
|
#### Returns
|
|
162
162
|
|
|
@@ -170,7 +170,7 @@ The first level error.
|
|
|
170
170
|
|
|
171
171
|
***
|
|
172
172
|
|
|
173
|
-
### isErrorName()
|
|
173
|
+
### isErrorName() {#iserrorname}
|
|
174
174
|
|
|
175
175
|
> `static` **isErrorName**(`error`, `name`): `error is BaseError`
|
|
176
176
|
|
|
@@ -186,9 +186,9 @@ The error to test.
|
|
|
186
186
|
|
|
187
187
|
##### name
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
`string` \| `RegExp`
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
The name to check for.
|
|
192
192
|
|
|
193
193
|
#### Returns
|
|
194
194
|
|
|
@@ -202,7 +202,7 @@ True if the error has the name.
|
|
|
202
202
|
|
|
203
203
|
***
|
|
204
204
|
|
|
205
|
-
### isErrorMessage()
|
|
205
|
+
### isErrorMessage() {#iserrormessage}
|
|
206
206
|
|
|
207
207
|
> `static` **isErrorMessage**(`error`, `message`): `error is BaseError`
|
|
208
208
|
|
|
@@ -218,9 +218,9 @@ The error to test.
|
|
|
218
218
|
|
|
219
219
|
##### message
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
`string` \| `RegExp`
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
The message to check for.
|
|
224
224
|
|
|
225
225
|
#### Returns
|
|
226
226
|
|
|
@@ -234,7 +234,7 @@ True if the error has the name.
|
|
|
234
234
|
|
|
235
235
|
***
|
|
236
236
|
|
|
237
|
-
### isErrorCode()
|
|
237
|
+
### isErrorCode() {#iserrorcode}
|
|
238
238
|
|
|
239
239
|
> `static` **isErrorCode**(`error`, `code`): `boolean`
|
|
240
240
|
|
|
@@ -250,9 +250,9 @@ The error to test.
|
|
|
250
250
|
|
|
251
251
|
##### code
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
`string` \| `RegExp`
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
The code to check for.
|
|
256
256
|
|
|
257
257
|
#### Returns
|
|
258
258
|
|
|
@@ -266,7 +266,7 @@ True if the error has the code.
|
|
|
266
266
|
|
|
267
267
|
***
|
|
268
268
|
|
|
269
|
-
### someErrorName()
|
|
269
|
+
### someErrorName() {#someerrorname}
|
|
270
270
|
|
|
271
271
|
> `static` **someErrorName**(`error`, `name`): `error is BaseError`
|
|
272
272
|
|
|
@@ -282,9 +282,9 @@ The error to test.
|
|
|
282
282
|
|
|
283
283
|
##### name
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
`string` \| `RegExp`
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
The name to check for.
|
|
288
288
|
|
|
289
289
|
#### Returns
|
|
290
290
|
|
|
@@ -298,7 +298,7 @@ True if the error has the name.
|
|
|
298
298
|
|
|
299
299
|
***
|
|
300
300
|
|
|
301
|
-
### someErrorMessage()
|
|
301
|
+
### someErrorMessage() {#someerrormessage}
|
|
302
302
|
|
|
303
303
|
> `static` **someErrorMessage**(`error`, `message`): `error is BaseError`
|
|
304
304
|
|
|
@@ -314,9 +314,9 @@ The error to test.
|
|
|
314
314
|
|
|
315
315
|
##### message
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
`string` \| `RegExp`
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
The message to check for.
|
|
320
320
|
|
|
321
321
|
#### Returns
|
|
322
322
|
|
|
@@ -330,7 +330,7 @@ True if the error has the name.
|
|
|
330
330
|
|
|
331
331
|
***
|
|
332
332
|
|
|
333
|
-
### someErrorClass()
|
|
333
|
+
### someErrorClass() {#someerrorclass}
|
|
334
334
|
|
|
335
335
|
> `static` **someErrorClass**(`error`, `cls`): `error is BaseError`
|
|
336
336
|
|
|
@@ -362,7 +362,7 @@ True if the error has the specific class.
|
|
|
362
362
|
|
|
363
363
|
***
|
|
364
364
|
|
|
365
|
-
### someErrorCode()
|
|
365
|
+
### someErrorCode() {#someerrorcode}
|
|
366
366
|
|
|
367
367
|
> `static` **someErrorCode**(`error`, `code`): `error is BaseError`
|
|
368
368
|
|
|
@@ -378,9 +378,9 @@ The error to test.
|
|
|
378
378
|
|
|
379
379
|
##### code
|
|
380
380
|
|
|
381
|
-
|
|
381
|
+
`string` \| `RegExp`
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
The code to check for.
|
|
384
384
|
|
|
385
385
|
#### Returns
|
|
386
386
|
|
|
@@ -394,7 +394,7 @@ True if the error has the name.
|
|
|
394
394
|
|
|
395
395
|
***
|
|
396
396
|
|
|
397
|
-
### isEmpty()
|
|
397
|
+
### isEmpty() {#isempty}
|
|
398
398
|
|
|
399
399
|
> `static` **isEmpty**(`err`): `boolean`
|
|
400
400
|
|
|
@@ -420,7 +420,7 @@ True if the error is empty.
|
|
|
420
420
|
|
|
421
421
|
***
|
|
422
422
|
|
|
423
|
-
### isAggregateError()
|
|
423
|
+
### isAggregateError() {#isaggregateerror}
|
|
424
424
|
|
|
425
425
|
> `static` **isAggregateError**(`err`): `err is AggregateError`
|
|
426
426
|
|
|
@@ -446,7 +446,7 @@ True if the error is an aggregate error.
|
|
|
446
446
|
|
|
447
447
|
***
|
|
448
448
|
|
|
449
|
-
### fromAggregate()
|
|
449
|
+
### fromAggregate() {#fromaggregate}
|
|
450
450
|
|
|
451
451
|
> `static` **fromAggregate**(`err`, `includeStackTrace?`): [`IError`](../interfaces/IError.md)[]
|
|
452
452
|
|
|
@@ -478,7 +478,7 @@ The array of errors.
|
|
|
478
478
|
|
|
479
479
|
***
|
|
480
480
|
|
|
481
|
-
### toJsonObject()
|
|
481
|
+
### toJsonObject() {#tojsonobject}
|
|
482
482
|
|
|
483
483
|
> **toJsonObject**(`includeStackTrace?`): [`IError`](../interfaces/IError.md)
|
|
484
484
|
|
package/docs/reference/index.md
CHANGED
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
- [CoerceType](type-aliases/CoerceType.md)
|
|
62
62
|
- [CompressionType](type-aliases/CompressionType.md)
|
|
63
63
|
- [ObjectOrArray](type-aliases/ObjectOrArray.md)
|
|
64
|
+
- [SingleOccurrenceArrayDepthHelper](type-aliases/SingleOccurrenceArrayDepthHelper.md)
|
|
65
|
+
- [SingleOccurrenceArray](type-aliases/SingleOccurrenceArray.md)
|
|
64
66
|
|
|
65
67
|
## Variables
|
|
66
68
|
|
|
@@ -4,7 +4,7 @@ Interface describing a component which can be bootstrapped, started and stopped.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
### className()
|
|
7
|
+
### className() {#classname}
|
|
8
8
|
|
|
9
9
|
> **className**(): `string`
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ The class name of the component.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### bootstrap()?
|
|
21
|
+
### bootstrap()? {#bootstrap}
|
|
22
22
|
|
|
23
23
|
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
24
24
|
|
|
@@ -40,7 +40,7 @@ True if the bootstrapping process was successful.
|
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
43
|
-
### start()?
|
|
43
|
+
### start()? {#start}
|
|
44
44
|
|
|
45
45
|
> `optional` **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
46
46
|
|
|
@@ -62,7 +62,7 @@ Nothing.
|
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### stop()?
|
|
65
|
+
### stop()? {#stop}
|
|
66
66
|
|
|
67
67
|
> `optional` **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
68
68
|
|
|
@@ -4,7 +4,7 @@ Model to describe serialized error.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### name
|
|
7
|
+
### name {#name}
|
|
8
8
|
|
|
9
9
|
> **name**: `string`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The name for the error.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### message
|
|
15
|
+
### message {#message}
|
|
16
16
|
|
|
17
17
|
> **message**: `string`
|
|
18
18
|
|
|
@@ -20,17 +20,17 @@ The message for the error.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### source?
|
|
23
|
+
### source? {#source}
|
|
24
24
|
|
|
25
|
-
> `optional` **source
|
|
25
|
+
> `optional` **source?**: `string`
|
|
26
26
|
|
|
27
27
|
The source of the error.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### properties?
|
|
31
|
+
### properties? {#properties}
|
|
32
32
|
|
|
33
|
-
> `optional` **properties
|
|
33
|
+
> `optional` **properties?**: `object`
|
|
34
34
|
|
|
35
35
|
Any additional information for the error.
|
|
36
36
|
|
|
@@ -40,16 +40,16 @@ Any additional information for the error.
|
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
43
|
-
### stack?
|
|
43
|
+
### stack? {#stack}
|
|
44
44
|
|
|
45
|
-
> `optional` **stack
|
|
45
|
+
> `optional` **stack?**: `string`
|
|
46
46
|
|
|
47
47
|
The stack trace for the error.
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
51
|
-
### cause?
|
|
51
|
+
### cause? {#cause}
|
|
52
52
|
|
|
53
|
-
> `optional` **cause
|
|
53
|
+
> `optional` **cause?**: `IError`
|
|
54
54
|
|
|
55
55
|
The cause of the error if there was one.
|
|
@@ -4,7 +4,7 @@ The shared state for the I18n global.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### localeDictionaries
|
|
7
|
+
### localeDictionaries {#localedictionaries}
|
|
8
8
|
|
|
9
9
|
> **localeDictionaries**: `object`
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ Dictionaries for lookups.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### currentLocale
|
|
19
|
+
### currentLocale {#currentlocale}
|
|
20
20
|
|
|
21
21
|
> **currentLocale**: `string`
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ The current locale.
|
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
27
|
-
### localeChangedHandlers
|
|
27
|
+
### localeChangedHandlers {#localechangedhandlers}
|
|
28
28
|
|
|
29
29
|
> **localeChangedHandlers**: `object`
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ Change handler for the locale being updated.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### dictionaryChangedHandlers
|
|
39
|
+
### dictionaryChangedHandlers {#dictionarychangedhandlers}
|
|
40
40
|
|
|
41
41
|
> **dictionaryChangedHandlers**: `object`
|
|
42
42
|
|
|
@@ -10,7 +10,7 @@ Interface describing a label/value pair.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
### label
|
|
13
|
+
### label {#label}
|
|
14
14
|
|
|
15
15
|
> **label**: `string`
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ The label for the item.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### value
|
|
21
|
+
### value {#value}
|
|
22
22
|
|
|
23
23
|
> **value**: `T`
|
|
24
24
|
|
|
@@ -4,7 +4,7 @@ Interface describing a patch operation to add a property.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### op
|
|
7
|
+
### op {#op}
|
|
8
8
|
|
|
9
9
|
> **op**: `"add"` \| `"remove"` \| `"replace"` \| `"move"` \| `"copy"` \| `"test"`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The operation that was performed on the item.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### path
|
|
15
|
+
### path {#path}
|
|
16
16
|
|
|
17
17
|
> **path**: `string`
|
|
18
18
|
|
|
@@ -20,16 +20,16 @@ The path to the object that was changed.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### from?
|
|
23
|
+
### from? {#from}
|
|
24
24
|
|
|
25
|
-
> `optional` **from
|
|
25
|
+
> `optional` **from?**: `string`
|
|
26
26
|
|
|
27
27
|
The path the value was copied or moved from.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### value?
|
|
31
|
+
### value? {#value}
|
|
32
32
|
|
|
33
|
-
> `optional` **value
|
|
33
|
+
> `optional` **value?**: `unknown`
|
|
34
34
|
|
|
35
35
|
The value to add.
|
|
@@ -4,7 +4,7 @@ Model to describe the parts of a url.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### schema
|
|
7
|
+
### schema {#schema}
|
|
8
8
|
|
|
9
9
|
> **schema**: `string`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The schema for the url.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### host
|
|
15
|
+
### host {#host}
|
|
16
16
|
|
|
17
17
|
> **host**: `string`
|
|
18
18
|
|
|
@@ -20,15 +20,15 @@ The host for the url.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### port?
|
|
23
|
+
### port? {#port}
|
|
24
24
|
|
|
25
|
-
> `optional` **port
|
|
25
|
+
> `optional` **port?**: `number`
|
|
26
26
|
|
|
27
27
|
The port for the url.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### path
|
|
31
|
+
### path {#path}
|
|
32
32
|
|
|
33
33
|
> **path**: `string`
|
|
34
34
|
|
|
@@ -36,16 +36,16 @@ The path for the url.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### params?
|
|
39
|
+
### params? {#params}
|
|
40
40
|
|
|
41
|
-
> `optional` **params
|
|
41
|
+
> `optional` **params?**: `string`
|
|
42
42
|
|
|
43
43
|
The params for the url.
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
### hash?
|
|
47
|
+
### hash? {#hash}
|
|
48
48
|
|
|
49
|
-
> `optional` **hash
|
|
49
|
+
> `optional` **hash?**: `string`
|
|
50
50
|
|
|
51
51
|
The hash for the url.
|
|
@@ -4,7 +4,7 @@ Interface describing the reason a validation failed.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### property
|
|
7
|
+
### property {#property}
|
|
8
8
|
|
|
9
9
|
> **property**: `string`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The property that failed validation.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### reason
|
|
15
|
+
### reason {#reason}
|
|
16
16
|
|
|
17
17
|
> **reason**: `string`
|
|
18
18
|
|
|
@@ -20,9 +20,9 @@ The reason the validation failed as an i18 resource error.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### properties?
|
|
23
|
+
### properties? {#properties}
|
|
24
24
|
|
|
25
|
-
> `optional` **properties
|
|
25
|
+
> `optional` **properties?**: `object`
|
|
26
26
|
|
|
27
27
|
Additional properties for the validation failure.
|
|
28
28
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Type Alias: SingleOccurrenceArray\<T, U\>
|
|
2
|
+
|
|
3
|
+
> **SingleOccurrenceArray**\<`T`, `U`\> = [`SingleOccurrenceArrayDepthHelper`](SingleOccurrenceArrayDepthHelper.md)\<`T`, `U`, \[\]\>
|
|
4
|
+
|
|
5
|
+
Utility type to create a non-empty array with values of type T and exactly one value of type U.
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
### T
|
|
10
|
+
|
|
11
|
+
`T` = `unknown`
|
|
12
|
+
|
|
13
|
+
### U
|
|
14
|
+
|
|
15
|
+
`U` = `never`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Type Alias: SingleOccurrenceArrayDepthHelper\<T, U, Depth\>
|
|
2
|
+
|
|
3
|
+
> **SingleOccurrenceArrayDepthHelper**\<`T`, `U`, `Depth`\> = `Depth`\[`"length"`\] *extends* `16` ? \[`U`, `...T[]`\] : \[`U`, `...T[]`\] \| \[`T`, `...SingleOccurrenceArrayDepthHelper<T, U, [0, ...Depth]>`\]
|
|
4
|
+
|
|
5
|
+
Helper with bounded recursion depth to keep type instantiation tractable.
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
### T
|
|
10
|
+
|
|
11
|
+
`T`
|
|
12
|
+
|
|
13
|
+
### U
|
|
14
|
+
|
|
15
|
+
`U`
|
|
16
|
+
|
|
17
|
+
### Depth
|
|
18
|
+
|
|
19
|
+
`Depth` *extends* `0`[]
|
|
@@ -6,61 +6,61 @@ The types the extracted data can be coerced to.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### String
|
|
9
|
+
### String {#string}
|
|
10
10
|
|
|
11
11
|
> `readonly` **String**: `"string"` = `"string"`
|
|
12
12
|
|
|
13
13
|
String.
|
|
14
14
|
|
|
15
|
-
### Number
|
|
15
|
+
### Number {#number}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Number**: `"number"` = `"number"`
|
|
18
18
|
|
|
19
19
|
Number.
|
|
20
20
|
|
|
21
|
-
### Integer
|
|
21
|
+
### Integer {#integer}
|
|
22
22
|
|
|
23
23
|
> `readonly` **Integer**: `"integer"` = `"integer"`
|
|
24
24
|
|
|
25
25
|
Integer.
|
|
26
26
|
|
|
27
|
-
### Boolean
|
|
27
|
+
### Boolean {#boolean}
|
|
28
28
|
|
|
29
29
|
> `readonly` **Boolean**: `"boolean"` = `"boolean"`
|
|
30
30
|
|
|
31
31
|
Boolean.
|
|
32
32
|
|
|
33
|
-
### BigInt
|
|
33
|
+
### BigInt {#bigint}
|
|
34
34
|
|
|
35
35
|
> `readonly` **BigInt**: `"bigint"` = `"bigint"`
|
|
36
36
|
|
|
37
37
|
Big Integer.
|
|
38
38
|
|
|
39
|
-
### Date
|
|
39
|
+
### Date {#date}
|
|
40
40
|
|
|
41
41
|
> `readonly` **Date**: `"date"` = `"date"`
|
|
42
42
|
|
|
43
43
|
Date.
|
|
44
44
|
|
|
45
|
-
### DateTime
|
|
45
|
+
### DateTime {#datetime}
|
|
46
46
|
|
|
47
47
|
> `readonly` **DateTime**: `"datetime"` = `"datetime"`
|
|
48
48
|
|
|
49
49
|
Date Time.
|
|
50
50
|
|
|
51
|
-
### Time
|
|
51
|
+
### Time {#time}
|
|
52
52
|
|
|
53
53
|
> `readonly` **Time**: `"time"` = `"time"`
|
|
54
54
|
|
|
55
55
|
Time.
|
|
56
56
|
|
|
57
|
-
### Object
|
|
57
|
+
### Object {#object}
|
|
58
58
|
|
|
59
59
|
> `readonly` **Object**: `"object"` = `"object"`
|
|
60
60
|
|
|
61
61
|
Object.
|
|
62
62
|
|
|
63
|
-
### Uint8Array
|
|
63
|
+
### Uint8Array {#uint8array}
|
|
64
64
|
|
|
65
65
|
> `readonly` **Uint8Array**: `"uint8array"` = `"uint8array"`
|
|
66
66
|
|