bguard 0.4.0 → 0.4.1
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 +73 -73
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,12 +11,12 @@ Table of contents
|
|
|
11
11
|
* [Usage](#h3_usage)
|
|
12
12
|
* [Defining a Schema](#h4_usage_defining_a_schema)
|
|
13
13
|
* [Inferring TypeScript Types](#h4_usage_inferring_typescript_types)
|
|
14
|
-
* [Generating TypeScript Types with `codeGen`](#
|
|
15
|
-
* [Generating Named TypeScript Types with `codeGenWithName`](#
|
|
14
|
+
* [Generating TypeScript Types with `codeGen`](#h4_usage_generating_typescript_types_with_codegen)
|
|
15
|
+
* [Generating Named TypeScript Types with `codeGenWithName`](#h4_usage_generating_typescript_types_with_codegenwithname)
|
|
16
16
|
* [Summary:](#h4_usage_summary)
|
|
17
17
|
* [Validating Data](#h3_validating_data)
|
|
18
18
|
* [`parse` Method](#h4_validating_data_parse)
|
|
19
|
-
* [`parseOrFail` Method](#
|
|
19
|
+
* [`parseOrFail` Method](#h4_validating_data_parseorfail)
|
|
20
20
|
* [Chaining Methods](#h3_chaining_methods)
|
|
21
21
|
* [nullable()](#h4_chaining_nullable)
|
|
22
22
|
* [optional()](#h4_chaining_optional)
|
|
@@ -32,52 +32,52 @@ Table of contents
|
|
|
32
32
|
* [Built-in Custom Assert Documentation](#builtin_custom_assert_documentation)
|
|
33
33
|
|
|
34
34
|
* [string](#assertdir_string)
|
|
35
|
-
* [atLeastOneDigit](#
|
|
36
|
-
* [atLeastOneLowerChar](#
|
|
37
|
-
* [atLeastOneSpecialChar](#
|
|
38
|
-
* [atLeastOneUpperChar](#
|
|
35
|
+
* [atLeastOneDigit](#assert_atleastonedigit_string)
|
|
36
|
+
* [atLeastOneLowerChar](#assert_atleastonelowerchar_string)
|
|
37
|
+
* [atLeastOneSpecialChar](#assert_atleastonespecialchar_string)
|
|
38
|
+
* [atLeastOneUpperChar](#assert_atleastoneupperchar_string)
|
|
39
39
|
* [contains](#assert_contains_string)
|
|
40
40
|
* [email](#assert_email_string)
|
|
41
|
-
* [endsWith](#
|
|
42
|
-
* [isValidDate](#
|
|
43
|
-
* [isValidDateTime](#
|
|
44
|
-
* [isValidTime](#
|
|
45
|
-
* [lowerCase](#
|
|
46
|
-
* [maxLength](#
|
|
47
|
-
* [minLength](#
|
|
48
|
-
* [regExp](#
|
|
49
|
-
* [startsWith](#
|
|
50
|
-
* [upperCase](#
|
|
41
|
+
* [endsWith](#assert_endswith_string)
|
|
42
|
+
* [isValidDate](#assert_isvaliddate_string)
|
|
43
|
+
* [isValidDateTime](#assert_isvaliddatetime_string)
|
|
44
|
+
* [isValidTime](#assert_isvalidtime_string)
|
|
45
|
+
* [lowerCase](#assert_lowercase_string)
|
|
46
|
+
* [maxLength](#assert_maxlength_string)
|
|
47
|
+
* [minLength](#assert_minlength_string)
|
|
48
|
+
* [regExp](#assert_regexp_string)
|
|
49
|
+
* [startsWith](#assert_startswith_string)
|
|
50
|
+
* [upperCase](#assert_uppercase_string)
|
|
51
51
|
* [uuid](#assert_uuid_string)
|
|
52
|
-
* [uuidV1](#
|
|
53
|
-
* [uuidV2](#
|
|
54
|
-
* [uuidV3](#
|
|
55
|
-
* [uuidV4](#
|
|
56
|
-
* [uuidV5](#
|
|
57
|
-
* [validUrl](#
|
|
52
|
+
* [uuidV1](#assert_uuidv1_string)
|
|
53
|
+
* [uuidV2](#assert_uuidv2_string)
|
|
54
|
+
* [uuidV3](#assert_uuidv3_string)
|
|
55
|
+
* [uuidV4](#assert_uuidv4_string)
|
|
56
|
+
* [uuidV5](#assert_uuidv5_string)
|
|
57
|
+
* [validUrl](#assert_validurl_string)
|
|
58
58
|
* [number](#assertdir_number)
|
|
59
59
|
* [max](#assert_max_number)
|
|
60
|
-
* [maxExcluded](#
|
|
60
|
+
* [maxExcluded](#assert_maxexcluded_number)
|
|
61
61
|
* [min](#assert_min_number)
|
|
62
|
-
* [minExcluded](#
|
|
62
|
+
* [minExcluded](#assert_minexcluded_number)
|
|
63
63
|
* [negative](#assert_negative_number)
|
|
64
64
|
* [positive](#assert_positive_number)
|
|
65
65
|
* [array](#assertdir_array)
|
|
66
|
-
* [maxArrayLength](#
|
|
67
|
-
* [minArrayLength](#
|
|
66
|
+
* [maxArrayLength](#assert_maxarraylength_array)
|
|
67
|
+
* [minArrayLength](#assert_minarraylength_array)
|
|
68
68
|
* [bigint](#assertdir_bigint)
|
|
69
|
-
* [bigintMax](#
|
|
70
|
-
* [bigintMaxExcluded](#
|
|
71
|
-
* [bigintMin](#
|
|
72
|
-
* [bigintMinExcluded](#
|
|
69
|
+
* [bigintMax](#assert_bigintmax_bigint)
|
|
70
|
+
* [bigintMaxExcluded](#assert_bigintmaxexcluded_bigint)
|
|
71
|
+
* [bigintMin](#assert_bigintmin_bigint)
|
|
72
|
+
* [bigintMinExcluded](#assert_bigintminexcluded_bigint)
|
|
73
73
|
* [date](#assertdir_date)
|
|
74
|
-
* [dateMax](#
|
|
75
|
-
* [dateMin](#
|
|
74
|
+
* [dateMax](#assert_datemax_date)
|
|
75
|
+
* [dateMin](#assert_datemin_date)
|
|
76
76
|
* [mix](#assertdir_mix)
|
|
77
|
-
* [equalTo](#
|
|
78
|
-
* [oneOfValues](#
|
|
77
|
+
* [equalTo](#assert_equalto_mix)
|
|
78
|
+
* [oneOfValues](#assert_oneofvalues_mix)
|
|
79
79
|
* [object](#assertdir_object)
|
|
80
|
-
* [maxKeys](#
|
|
80
|
+
* [maxKeys](#assert_maxkeys_object)
|
|
81
81
|
|
|
82
82
|
### <a id="h3_features"> Features </a>
|
|
83
83
|
|
|
@@ -158,7 +158,7 @@ type StudentSchema = {
|
|
|
158
158
|
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
#### <a id="
|
|
161
|
+
#### <a id="h4_usage_generating_typescript_types_with_codegen"> Generating TypeScript Types with `codeGen` </a>
|
|
162
162
|
|
|
163
163
|
If you prefer to generate TypeScript types as a string, you can use the `codeGen` function:
|
|
164
164
|
|
|
@@ -193,7 +193,7 @@ This would output a string:
|
|
|
193
193
|
|
|
194
194
|
> **Notice:** The returned string does not include a type name or the `=` symbol. You would need to add these manually if you want a complete type definition.
|
|
195
195
|
|
|
196
|
-
#### <a id="
|
|
196
|
+
#### <a id="h4_usage_generating_typescript_types_with_codegenwithname"> Generating Named TypeScript Types with `codeGenWithName` </a>
|
|
197
197
|
|
|
198
198
|
For convenience, if you want to generate a complete type definition including a name, use the `codeGenWithName` function:
|
|
199
199
|
|
|
@@ -290,7 +290,7 @@ Options:
|
|
|
290
290
|
- `lng`: Specifies the language for error messages. Default is `'default'`.
|
|
291
291
|
- `getAllErrors`: If `true`, collects all validation errors. If `false` or `undefined`, stops at the first error. Turning off `getAllErrors` provides a runtime optimization, as it stops validation at the first error, avoiding unnecessary checks for the remaining received value.
|
|
292
292
|
|
|
293
|
-
#### <a id="
|
|
293
|
+
#### <a id="h4_validating_data_parseorfail"> `parseOrFail` Method </a>
|
|
294
294
|
|
|
295
295
|
The `parseOrFail` method validates the data and throws an error on the first validation failure. It is useful when you want to halt processing immediately upon encountering an error.
|
|
296
296
|
|
|
@@ -628,7 +628,7 @@ import { string } from 'bguard/string';
|
|
|
628
628
|
```
|
|
629
629
|
|
|
630
630
|
|
|
631
|
-
##### <a id="
|
|
631
|
+
##### <a id="assert_atleastonedigit_string"> atLeastOneDigit </a>
|
|
632
632
|
|
|
633
633
|
```typescript
|
|
634
634
|
import { atLeastOneDigit } from 'bguard/string/atLeastOneDigit';
|
|
@@ -645,7 +645,7 @@ import { atLeastOneDigit } from 'bguard/string/atLeastOneDigit';
|
|
|
645
645
|
* _See_ Error Translation Key = 's:atLeastOneDigit'
|
|
646
646
|
|
|
647
647
|
|
|
648
|
-
##### <a id="
|
|
648
|
+
##### <a id="assert_atleastonelowerchar_string"> atLeastOneLowerChar </a>
|
|
649
649
|
|
|
650
650
|
```typescript
|
|
651
651
|
import { atLeastOneLowerChar } from 'bguard/string/atLeastOneLowerChar';
|
|
@@ -662,7 +662,7 @@ import { atLeastOneLowerChar } from 'bguard/string/atLeastOneLowerChar';
|
|
|
662
662
|
* _See_ Error Translation Key = 's:atLeastOneLowerChar'
|
|
663
663
|
|
|
664
664
|
|
|
665
|
-
##### <a id="
|
|
665
|
+
##### <a id="assert_atleastonespecialchar_string"> atLeastOneSpecialChar </a>
|
|
666
666
|
|
|
667
667
|
```typescript
|
|
668
668
|
import { atLeastOneSpecialChar } from 'bguard/string/atLeastOneSpecialChar';
|
|
@@ -684,7 +684,7 @@ import { atLeastOneSpecialChar } from 'bguard/string/atLeastOneSpecialChar';
|
|
|
684
684
|
* _See_ Error Translation Key = 's:atLeastOneSpecialChar'
|
|
685
685
|
|
|
686
686
|
|
|
687
|
-
##### <a id="
|
|
687
|
+
##### <a id="assert_atleastoneupperchar_string"> atLeastOneUpperChar </a>
|
|
688
688
|
|
|
689
689
|
```typescript
|
|
690
690
|
import { atLeastOneUpperChar } from 'bguard/string/atLeastOneUpperChar';
|
|
@@ -736,7 +736,7 @@ import { email } from 'bguard/string/email';
|
|
|
736
736
|
* _See_ - Error Translation Key = 's:email'
|
|
737
737
|
|
|
738
738
|
|
|
739
|
-
##### <a id="
|
|
739
|
+
##### <a id="assert_endswith_string"> endsWith </a>
|
|
740
740
|
|
|
741
741
|
```typescript
|
|
742
742
|
import { endsWith } from 'bguard/string/endsWith';
|
|
@@ -754,7 +754,7 @@ import { endsWith } from 'bguard/string/endsWith';
|
|
|
754
754
|
* _See_ Error Translation Key = 's:endsWith'
|
|
755
755
|
|
|
756
756
|
|
|
757
|
-
##### <a id="
|
|
757
|
+
##### <a id="assert_isvaliddate_string"> isValidDate </a>
|
|
758
758
|
|
|
759
759
|
```typescript
|
|
760
760
|
import { isValidDate } from 'bguard/string/isValidDate';
|
|
@@ -772,7 +772,7 @@ import { isValidDate } from 'bguard/string/isValidDate';
|
|
|
772
772
|
* _See_ Error Translation Key = 's:isValidDate'
|
|
773
773
|
|
|
774
774
|
|
|
775
|
-
##### <a id="
|
|
775
|
+
##### <a id="assert_isvaliddatetime_string"> isValidDateTime </a>
|
|
776
776
|
|
|
777
777
|
```typescript
|
|
778
778
|
import { isValidDateTime } from 'bguard/string/isValidDateTime';
|
|
@@ -800,7 +800,7 @@ import { isValidDateTime } from 'bguard/string/isValidDateTime';
|
|
|
800
800
|
* _See_ Error Translation Key = 's:isValidDateTime'
|
|
801
801
|
|
|
802
802
|
|
|
803
|
-
##### <a id="
|
|
803
|
+
##### <a id="assert_isvalidtime_string"> isValidTime </a>
|
|
804
804
|
|
|
805
805
|
```typescript
|
|
806
806
|
import { isValidTime } from 'bguard/string/isValidTime';
|
|
@@ -823,7 +823,7 @@ import { isValidTime } from 'bguard/string/isValidTime';
|
|
|
823
823
|
* _See_ Error Translation Key = 's:isValidTime'
|
|
824
824
|
|
|
825
825
|
|
|
826
|
-
##### <a id="
|
|
826
|
+
##### <a id="assert_lowercase_string"> lowerCase </a>
|
|
827
827
|
|
|
828
828
|
```typescript
|
|
829
829
|
import { lowerCase } from 'bguard/string/lowerCase';
|
|
@@ -840,7 +840,7 @@ import { lowerCase } from 'bguard/string/lowerCase';
|
|
|
840
840
|
* _See_ Error Translation Key = 's:lowerCase'
|
|
841
841
|
|
|
842
842
|
|
|
843
|
-
##### <a id="
|
|
843
|
+
##### <a id="assert_maxlength_string"> maxLength </a>
|
|
844
844
|
|
|
845
845
|
```typescript
|
|
846
846
|
import { maxLength } from 'bguard/string/maxLength';
|
|
@@ -858,7 +858,7 @@ import { maxLength } from 'bguard/string/maxLength';
|
|
|
858
858
|
* _See_ Error Translation Key = 's:maxLength'
|
|
859
859
|
|
|
860
860
|
|
|
861
|
-
##### <a id="
|
|
861
|
+
##### <a id="assert_minlength_string"> minLength </a>
|
|
862
862
|
|
|
863
863
|
```typescript
|
|
864
864
|
import { minLength } from 'bguard/string/minLength';
|
|
@@ -876,7 +876,7 @@ import { minLength } from 'bguard/string/minLength';
|
|
|
876
876
|
* _See_ Error Translation Key = 's:minLength'
|
|
877
877
|
|
|
878
878
|
|
|
879
|
-
##### <a id="
|
|
879
|
+
##### <a id="assert_regexp_string"> regExp </a>
|
|
880
880
|
|
|
881
881
|
```typescript
|
|
882
882
|
import { regExp } from 'bguard/string/regExp';
|
|
@@ -894,7 +894,7 @@ import { regExp } from 'bguard/string/regExp';
|
|
|
894
894
|
* _See_ Error Translation Key = 's:regExp'
|
|
895
895
|
|
|
896
896
|
|
|
897
|
-
##### <a id="
|
|
897
|
+
##### <a id="assert_startswith_string"> startsWith </a>
|
|
898
898
|
|
|
899
899
|
```typescript
|
|
900
900
|
import { startsWith } from 'bguard/string/startsWith';
|
|
@@ -912,7 +912,7 @@ import { startsWith } from 'bguard/string/startsWith';
|
|
|
912
912
|
* _See_ Error Translation Key = 's:startsWith'
|
|
913
913
|
|
|
914
914
|
|
|
915
|
-
##### <a id="
|
|
915
|
+
##### <a id="assert_uppercase_string"> upperCase </a>
|
|
916
916
|
|
|
917
917
|
```typescript
|
|
918
918
|
import { upperCase } from 'bguard/string/upperCase';
|
|
@@ -947,7 +947,7 @@ import { uuid } from 'bguard/string/uuid';
|
|
|
947
947
|
* _See_ Error Translation Key = 's:uuid'
|
|
948
948
|
|
|
949
949
|
|
|
950
|
-
##### <a id="
|
|
950
|
+
##### <a id="assert_uuidv1_string"> uuidV1 </a>
|
|
951
951
|
|
|
952
952
|
```typescript
|
|
953
953
|
import { uuidV1 } from 'bguard/string/uuidV1';
|
|
@@ -965,7 +965,7 @@ import { uuidV1 } from 'bguard/string/uuidV1';
|
|
|
965
965
|
* _See_ Error Translation Key = 's:uuidV1'
|
|
966
966
|
|
|
967
967
|
|
|
968
|
-
##### <a id="
|
|
968
|
+
##### <a id="assert_uuidv2_string"> uuidV2 </a>
|
|
969
969
|
|
|
970
970
|
```typescript
|
|
971
971
|
import { uuidV2 } from 'bguard/string/uuidV2';
|
|
@@ -983,7 +983,7 @@ import { uuidV2 } from 'bguard/string/uuidV2';
|
|
|
983
983
|
* _See_ Error Translation Key = 's:uuidV2'
|
|
984
984
|
|
|
985
985
|
|
|
986
|
-
##### <a id="
|
|
986
|
+
##### <a id="assert_uuidv3_string"> uuidV3 </a>
|
|
987
987
|
|
|
988
988
|
```typescript
|
|
989
989
|
import { uuidV3 } from 'bguard/string/uuidV3';
|
|
@@ -1001,7 +1001,7 @@ import { uuidV3 } from 'bguard/string/uuidV3';
|
|
|
1001
1001
|
* _See_ Error Translation Key = 's:uuidV3'
|
|
1002
1002
|
|
|
1003
1003
|
|
|
1004
|
-
##### <a id="
|
|
1004
|
+
##### <a id="assert_uuidv4_string"> uuidV4 </a>
|
|
1005
1005
|
|
|
1006
1006
|
```typescript
|
|
1007
1007
|
import { uuidV4 } from 'bguard/string/uuidV4';
|
|
@@ -1021,7 +1021,7 @@ import { uuidV4 } from 'bguard/string/uuidV4';
|
|
|
1021
1021
|
* _See_ Error Translation Key = 's:uuidV4'
|
|
1022
1022
|
|
|
1023
1023
|
|
|
1024
|
-
##### <a id="
|
|
1024
|
+
##### <a id="assert_uuidv5_string"> uuidV5 </a>
|
|
1025
1025
|
|
|
1026
1026
|
```typescript
|
|
1027
1027
|
import { uuidV5 } from 'bguard/string/uuidV5';
|
|
@@ -1039,7 +1039,7 @@ import { uuidV5 } from 'bguard/string/uuidV5';
|
|
|
1039
1039
|
* _See_ Error Translation Key = 's:uuidV5'
|
|
1040
1040
|
|
|
1041
1041
|
|
|
1042
|
-
##### <a id="
|
|
1042
|
+
##### <a id="assert_validurl_string"> validUrl </a>
|
|
1043
1043
|
|
|
1044
1044
|
```typescript
|
|
1045
1045
|
import { validUrl } from 'bguard/string/validUrl';
|
|
@@ -1094,7 +1094,7 @@ import { max } from 'bguard/number/max';
|
|
|
1094
1094
|
* _See_ Error Translation Key = 'n:max'
|
|
1095
1095
|
|
|
1096
1096
|
|
|
1097
|
-
##### <a id="
|
|
1097
|
+
##### <a id="assert_maxexcluded_number"> maxExcluded </a>
|
|
1098
1098
|
|
|
1099
1099
|
```typescript
|
|
1100
1100
|
import { maxExcluded } from 'bguard/number/maxExcluded';
|
|
@@ -1132,7 +1132,7 @@ import { min } from 'bguard/number/min';
|
|
|
1132
1132
|
* _See_ Error Translation Key = 'n:min'
|
|
1133
1133
|
|
|
1134
1134
|
|
|
1135
|
-
##### <a id="
|
|
1135
|
+
##### <a id="assert_minexcluded_number"> minExcluded </a>
|
|
1136
1136
|
|
|
1137
1137
|
```typescript
|
|
1138
1138
|
import { minExcluded } from 'bguard/number/minExcluded';
|
|
@@ -1205,7 +1205,7 @@ import { array } from 'bguard/array';
|
|
|
1205
1205
|
```
|
|
1206
1206
|
|
|
1207
1207
|
|
|
1208
|
-
##### <a id="
|
|
1208
|
+
##### <a id="assert_maxarraylength_array"> maxArrayLength </a>
|
|
1209
1209
|
|
|
1210
1210
|
```typescript
|
|
1211
1211
|
import { maxArrayLength } from 'bguard/array/maxArrayLength';
|
|
@@ -1224,7 +1224,7 @@ import { maxArrayLength } from 'bguard/array/maxArrayLength';
|
|
|
1224
1224
|
* _See_ Error Translation Key = 'a:maxArrayLength'
|
|
1225
1225
|
|
|
1226
1226
|
|
|
1227
|
-
##### <a id="
|
|
1227
|
+
##### <a id="assert_minarraylength_array"> minArrayLength </a>
|
|
1228
1228
|
|
|
1229
1229
|
```typescript
|
|
1230
1230
|
import { minArrayLength } from 'bguard/array/minArrayLength';
|
|
@@ -1260,7 +1260,7 @@ import { bigint } from 'bguard/bigint';
|
|
|
1260
1260
|
```
|
|
1261
1261
|
|
|
1262
1262
|
|
|
1263
|
-
##### <a id="
|
|
1263
|
+
##### <a id="assert_bigintmax_bigint"> bigintMax </a>
|
|
1264
1264
|
|
|
1265
1265
|
```typescript
|
|
1266
1266
|
import { bigintMax } from 'bguard/bigint/bigintMax';
|
|
@@ -1279,7 +1279,7 @@ import { bigintMax } from 'bguard/bigint/bigintMax';
|
|
|
1279
1279
|
* _See_ Error Translation Key = 'bi:max'
|
|
1280
1280
|
|
|
1281
1281
|
|
|
1282
|
-
##### <a id="
|
|
1282
|
+
##### <a id="assert_bigintmaxexcluded_bigint"> bigintMaxExcluded </a>
|
|
1283
1283
|
|
|
1284
1284
|
```typescript
|
|
1285
1285
|
import { bigintMaxExcluded } from 'bguard/bigint/bigintMaxExcluded';
|
|
@@ -1298,7 +1298,7 @@ import { bigintMaxExcluded } from 'bguard/bigint/bigintMaxExcluded';
|
|
|
1298
1298
|
* _See_ Error Translation Key = 'bi:maxExcluded'
|
|
1299
1299
|
|
|
1300
1300
|
|
|
1301
|
-
##### <a id="
|
|
1301
|
+
##### <a id="assert_bigintmin_bigint"> bigintMin </a>
|
|
1302
1302
|
|
|
1303
1303
|
```typescript
|
|
1304
1304
|
import { bigintMin } from 'bguard/bigint/bigintMin';
|
|
@@ -1317,7 +1317,7 @@ import { bigintMin } from 'bguard/bigint/bigintMin';
|
|
|
1317
1317
|
* _See_ Error Translation Key = 'bi:min'
|
|
1318
1318
|
|
|
1319
1319
|
|
|
1320
|
-
##### <a id="
|
|
1320
|
+
##### <a id="assert_bigintminexcluded_bigint"> bigintMinExcluded </a>
|
|
1321
1321
|
|
|
1322
1322
|
```typescript
|
|
1323
1323
|
import { bigintMinExcluded } from 'bguard/bigint/bigintMinExcluded';
|
|
@@ -1352,7 +1352,7 @@ import { date } from 'bguard/date';
|
|
|
1352
1352
|
```
|
|
1353
1353
|
|
|
1354
1354
|
|
|
1355
|
-
##### <a id="
|
|
1355
|
+
##### <a id="assert_datemax_date"> dateMax </a>
|
|
1356
1356
|
|
|
1357
1357
|
```typescript
|
|
1358
1358
|
import { dateMax } from 'bguard/date/dateMax';
|
|
@@ -1371,7 +1371,7 @@ import { dateMax } from 'bguard/date/dateMax';
|
|
|
1371
1371
|
* _See_ Error Translation Key = 'dt:max'
|
|
1372
1372
|
|
|
1373
1373
|
|
|
1374
|
-
##### <a id="
|
|
1374
|
+
##### <a id="assert_datemin_date"> dateMin </a>
|
|
1375
1375
|
|
|
1376
1376
|
```typescript
|
|
1377
1377
|
import { dateMin } from 'bguard/date/dateMin';
|
|
@@ -1410,7 +1410,7 @@ import { oneOfTypes } from 'bguard/mix';
|
|
|
1410
1410
|
```
|
|
1411
1411
|
|
|
1412
1412
|
|
|
1413
|
-
##### <a id="
|
|
1413
|
+
##### <a id="assert_equalto_mix"> equalTo </a>
|
|
1414
1414
|
|
|
1415
1415
|
```typescript
|
|
1416
1416
|
import { equalTo } from 'bguard/mix/equalTo';
|
|
@@ -1429,7 +1429,7 @@ import { equalTo } from 'bguard/mix/equalTo';
|
|
|
1429
1429
|
* _See_ Error Translation Key = 'm:equalTo'
|
|
1430
1430
|
|
|
1431
1431
|
|
|
1432
|
-
##### <a id="
|
|
1432
|
+
##### <a id="assert_oneofvalues_mix"> oneOfValues </a>
|
|
1433
1433
|
|
|
1434
1434
|
```typescript
|
|
1435
1435
|
import { oneOfValues } from 'bguard/mix/oneOfValues';
|
|
@@ -1470,7 +1470,7 @@ import { object } from 'bguard/object';
|
|
|
1470
1470
|
```
|
|
1471
1471
|
|
|
1472
1472
|
|
|
1473
|
-
##### <a id="
|
|
1473
|
+
##### <a id="assert_maxkeys_object"> maxKeys </a>
|
|
1474
1474
|
|
|
1475
1475
|
```typescript
|
|
1476
1476
|
import { maxKeys } from 'bguard/object/maxKeys';
|
|
@@ -1497,4 +1497,4 @@ import { maxKeys } from 'bguard/object/maxKeys';
|
|
|
1497
1497
|
* _See_ Error Translation Key = 'o:maxKeys'
|
|
1498
1498
|
|
|
1499
1499
|
### Contributing
|
|
1500
|
-
Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.
|
|
1500
|
+
Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.
|