n4s 6.1.12 → 6.2.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.
Files changed (42) hide show
  1. package/dist/exports/date.cjs +1 -1
  2. package/dist/exports/date.mjs +1 -1
  3. package/dist/exports/email.cjs +1 -1
  4. package/dist/exports/email.mjs +1 -1
  5. package/dist/exports/isURL.cjs +1 -1
  6. package/dist/exports/isURL.mjs +1 -1
  7. package/dist/{n4s-CoDF5Fg6.cjs → n4s-BTHEz-bJ.cjs} +215 -5
  8. package/dist/n4s-BTHEz-bJ.cjs.map +1 -0
  9. package/dist/{n4s-KWquSyTb.mjs → n4s-BxrvnvKp.mjs} +218 -8
  10. package/dist/n4s-BxrvnvKp.mjs.map +1 -0
  11. package/dist/n4s.cjs +1 -1
  12. package/dist/n4s.mjs +1 -1
  13. package/package.json +5 -1
  14. package/src/eager/eagerTypes.ts +14 -0
  15. package/src/lazy.ts +24 -0
  16. package/src/n4s.ts +5 -0
  17. package/src/rules/schemaRules/__tests__/integrationSchemaRules.types.test.ts +92 -0
  18. package/src/rules/schemaRules/__tests__/isArrayOf.test.ts +37 -1
  19. package/src/rules/schemaRules/__tests__/lazy.test.ts +312 -0
  20. package/src/rules/schemaRules/__tests__/record.test.ts +205 -0
  21. package/src/rules/schemaRules/__tests__/schema.parse.integration.test.ts +79 -0
  22. package/src/rules/schemaRules/__tests__/tuple.test.ts +256 -0
  23. package/src/rules/schemaRules/lazy.ts +48 -0
  24. package/src/rules/schemaRules/record.ts +126 -0
  25. package/src/rules/schemaRules/schemaRules.ts +8 -1
  26. package/src/rules/schemaRules/schemaRulesLazyTypes.ts +21 -0
  27. package/src/rules/schemaRules/tuple.ts +157 -0
  28. package/types/exports/date.d.cts +1 -1
  29. package/types/exports/date.d.mts +1 -1
  30. package/types/n4s.d.cts +21 -2
  31. package/types/n4s.d.cts.map +1 -1
  32. package/types/n4s.d.mts +78 -69
  33. package/types/n4s.d.mts.map +1 -1
  34. package/types/n4s.d.ts +21 -2
  35. package/types/{n4sTypes-Bb1zNxyv.d.mts → n4sTypes-3THfSmAQ.d.mts} +79 -5
  36. package/types/n4sTypes-3THfSmAQ.d.mts.map +1 -0
  37. package/types/{n4sTypes-ChCugpFQ.d.cts → n4sTypes-BSTzXRsU.d.cts} +66 -2
  38. package/types/n4sTypes-BSTzXRsU.d.cts.map +1 -0
  39. package/dist/n4s-CoDF5Fg6.cjs.map +0 -1
  40. package/dist/n4s-KWquSyTb.mjs.map +0 -1
  41. package/types/n4sTypes-Bb1zNxyv.d.mts.map +0 -1
  42. package/types/n4sTypes-ChCugpFQ.d.cts.map +0 -1
package/types/n4s.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as longerThanOrEquals, A as isNumber, B as isNaN, C as IsArrayOfRuleInstance, D as lessThanOrEquals, E as toNumber$1, F as NullRuleInstance, G as AllOfRuleInstance, H as OneOfRuleInstance, I as NullishRuleInstance, J as isEmpty$1, K as BooleanRuleInstance, L as UndefinedRuleInstance, M as isNegative, N as isBetween, O as lessThan, P as greaterThanOrEquals, Q as longerThan, R as AnyRuleInstance, S as MultiTypeInputArgs, T as numberNotEquals$1, U as NoneOfRuleInstance, V as CompoundRuleLazyTypes, W as AnyOfRuleInstance, X as lengthEquals$1, Y as isNotArray, Z as lengthNotEquals, _ as PartialRuleInstance, a as startsWith, at as notInside, b as ShapeRuleInstance, c as isString, ct as isArray, d as endsWith, dt as ExtractRuleFunctions, et as maxLength, f as doesNotStartWith, ft as RuleInstance, g as PickRuleInstance, h as OmitRuleInstance, i as FirstParam, it as inside, j as isNotBetween, k as isPositive, l as isNotBlank, lt as includes, m as SchemaRuleLazyTypes, nt as shorterThan, o as notMatches, ot as equals, p as doesNotEndWith, pt as RuleRunReturn, q as equals$1, r as enforceEager, rt as shorterThanOrEquals, s as matches, st as notEquals, t as CustomMatcherArgs, tt as minLength, u as isBlankString, ut as BuildRuleInstance, v as OptionalRuleInstance, w as ObjectRulesUnion, x as MultiTypeInput, y as LooseRuleInstance, z as isNotNaN } from "./n4sTypes-Bb1zNxyv.mjs";
1
+ import { $ as lengthEquals$1, A as lessThanOrEquals, B as UndefinedRuleInstance, C as ShapeRuleInstance, D as ObjectRulesUnion, E as IsArrayOfRuleInstance, F as isNegative, G as OneOfRuleInstance, H as isNotNaN, I as isBetween, J as AllOfRuleInstance, K as NoneOfRuleInstance, L as greaterThanOrEquals, M as isPositive, N as isNumber, O as numberNotEquals$1, P as isNotBetween, Q as isNotArray, R as NullRuleInstance, S as LooseRuleInstance, T as MultiTypeInputArgs, U as isNaN, V as AnyRuleInstance, W as CompoundRuleLazyTypes, X as equals$1, Y as BooleanRuleInstance, Z as isEmpty$1, _ as RecordRuleInstance, a as startsWith, at as shorterThan, b as PartialRuleInstance, c as isString, ct as notInside, d as endsWith, dt as isArray, et as lengthNotEquals, f as doesNotStartWith, ft as includes, g as TupleRuleInstance, gt as RuleRunReturn, h as SchemaRuleLazyTypes, ht as RuleInstance, i as FirstParam, it as minLength, j as lessThan, k as toNumber$1, l as isNotBlank, lt as equals, m as LazyRuleInstance, mt as ExtractRuleFunctions, nt as longerThanOrEquals, o as notMatches, ot as shorterThanOrEquals, p as doesNotEndWith, pt as BuildRuleInstance, q as AnyOfRuleInstance, r as enforceEager, rt as maxLength, s as matches, st as inside, t as CustomMatcherArgs, tt as longerThan$1, u as isBlankString, ut as notEquals, v as OmitRuleInstance, w as MultiTypeInput, x as OptionalRuleInstance, y as PickRuleInstance, z as NullishRuleInstance } from "./n4sTypes-3THfSmAQ.mjs";
2
2
  import { Nullable } from "vest-utils";
3
3
  import * as context0 from "context";
4
4
 
@@ -50,7 +50,6 @@ declare function toBoolean(value: unknown): RuleRunReturn<boolean>;
50
50
  declare function defaultTo<TValue>(value: TValue, fallback: NonNullable<TValue>): RuleRunReturn<NonNullable<TValue>>;
51
51
  //#endregion
52
52
  //#region ../vest-utils/types/vest-utils.d.cts
53
- //#endregion
54
53
  //#region src/withResolvers.d.ts
55
54
  declare global {
56
55
  interface PromiseConstructor {
@@ -98,7 +97,7 @@ declare const baseEnforceLazy: {
98
97
  readonly isNotEmpty: (value: unknown) => boolean;
99
98
  readonly lengthEquals: typeof lengthEquals$1;
100
99
  readonly lengthNotEquals: typeof lengthNotEquals;
101
- readonly longerThan: typeof longerThan;
100
+ readonly longerThan: typeof longerThan$1;
102
101
  readonly longerThanOrEquals: typeof longerThanOrEquals;
103
102
  readonly maxLength: typeof maxLength;
104
103
  readonly minLength: typeof minLength;
@@ -122,7 +121,7 @@ declare const baseEnforceLazy: {
122
121
  readonly isNotEmpty: (value: unknown) => boolean;
123
122
  readonly lengthEquals: typeof lengthEquals$1;
124
123
  readonly lengthNotEquals: typeof lengthNotEquals;
125
- readonly longerThan: typeof longerThan;
124
+ readonly longerThan: typeof longerThan$1;
126
125
  readonly longerThanOrEquals: typeof longerThanOrEquals;
127
126
  readonly maxLength: typeof maxLength;
128
127
  readonly minLength: typeof minLength;
@@ -146,7 +145,7 @@ declare const baseEnforceLazy: {
146
145
  readonly isNotEmpty: (value: unknown) => boolean;
147
146
  readonly lengthEquals: typeof lengthEquals$1;
148
147
  readonly lengthNotEquals: typeof lengthNotEquals;
149
- readonly longerThan: typeof longerThan;
148
+ readonly longerThan: typeof longerThan$1;
150
149
  readonly longerThanOrEquals: typeof longerThanOrEquals;
151
150
  readonly maxLength: typeof maxLength;
152
151
  readonly minLength: typeof minLength;
@@ -170,7 +169,7 @@ declare const baseEnforceLazy: {
170
169
  readonly isNotEmpty: (value: unknown) => boolean;
171
170
  readonly lengthEquals: typeof lengthEquals$1;
172
171
  readonly lengthNotEquals: typeof lengthNotEquals;
173
- readonly longerThan: typeof longerThan;
172
+ readonly longerThan: typeof longerThan$1;
174
173
  readonly longerThanOrEquals: typeof longerThanOrEquals;
175
174
  readonly maxLength: typeof maxLength;
176
175
  readonly minLength: typeof minLength;
@@ -194,7 +193,7 @@ declare const baseEnforceLazy: {
194
193
  readonly isNotEmpty: (value: unknown) => boolean;
195
194
  readonly lengthEquals: typeof lengthEquals$1;
196
195
  readonly lengthNotEquals: typeof lengthNotEquals;
197
- readonly longerThan: typeof longerThan;
196
+ readonly longerThan: typeof longerThan$1;
198
197
  readonly longerThanOrEquals: typeof longerThanOrEquals;
199
198
  readonly maxLength: typeof maxLength;
200
199
  readonly minLength: typeof minLength;
@@ -218,7 +217,7 @@ declare const baseEnforceLazy: {
218
217
  readonly isNotEmpty: (value: unknown) => boolean;
219
218
  readonly lengthEquals: typeof lengthEquals$1;
220
219
  readonly lengthNotEquals: typeof lengthNotEquals;
221
- readonly longerThan: typeof longerThan;
220
+ readonly longerThan: typeof longerThan$1;
222
221
  readonly longerThanOrEquals: typeof longerThanOrEquals;
223
222
  readonly maxLength: typeof maxLength;
224
223
  readonly minLength: typeof minLength;
@@ -242,7 +241,7 @@ declare const baseEnforceLazy: {
242
241
  readonly isNotEmpty: (value: unknown) => boolean;
243
242
  readonly lengthEquals: typeof lengthEquals$1;
244
243
  readonly lengthNotEquals: typeof lengthNotEquals;
245
- readonly longerThan: typeof longerThan;
244
+ readonly longerThan: typeof longerThan$1;
246
245
  readonly longerThanOrEquals: typeof longerThanOrEquals;
247
246
  readonly maxLength: typeof maxLength;
248
247
  readonly minLength: typeof minLength;
@@ -266,7 +265,7 @@ declare const baseEnforceLazy: {
266
265
  readonly isNotEmpty: (value: unknown) => boolean;
267
266
  readonly lengthEquals: typeof lengthEquals$1;
268
267
  readonly lengthNotEquals: typeof lengthNotEquals;
269
- readonly longerThan: typeof longerThan;
268
+ readonly longerThan: typeof longerThan$1;
270
269
  readonly longerThanOrEquals: typeof longerThanOrEquals;
271
270
  readonly maxLength: typeof maxLength;
272
271
  readonly minLength: typeof minLength;
@@ -290,7 +289,7 @@ declare const baseEnforceLazy: {
290
289
  readonly isNotEmpty: (value: unknown) => boolean;
291
290
  readonly lengthEquals: typeof lengthEquals$1;
292
291
  readonly lengthNotEquals: typeof lengthNotEquals;
293
- readonly longerThan: typeof longerThan;
292
+ readonly longerThan: typeof longerThan$1;
294
293
  readonly longerThanOrEquals: typeof longerThanOrEquals;
295
294
  readonly maxLength: typeof maxLength;
296
295
  readonly minLength: typeof minLength;
@@ -314,7 +313,7 @@ declare const baseEnforceLazy: {
314
313
  readonly isNotEmpty: (value: unknown) => boolean;
315
314
  readonly lengthEquals: typeof lengthEquals$1;
316
315
  readonly lengthNotEquals: typeof lengthNotEquals;
317
- readonly longerThan: typeof longerThan;
316
+ readonly longerThan: typeof longerThan$1;
318
317
  readonly longerThanOrEquals: typeof longerThanOrEquals;
319
318
  readonly maxLength: typeof maxLength;
320
319
  readonly minLength: typeof minLength;
@@ -338,7 +337,7 @@ declare const baseEnforceLazy: {
338
337
  readonly isNotEmpty: (value: unknown) => boolean;
339
338
  readonly lengthEquals: typeof lengthEquals$1;
340
339
  readonly lengthNotEquals: typeof lengthNotEquals;
341
- readonly longerThan: typeof longerThan;
340
+ readonly longerThan: typeof longerThan$1;
342
341
  readonly longerThanOrEquals: typeof longerThanOrEquals;
343
342
  readonly maxLength: typeof maxLength;
344
343
  readonly minLength: typeof minLength;
@@ -362,7 +361,7 @@ declare const baseEnforceLazy: {
362
361
  readonly isNotEmpty: (value: unknown) => boolean;
363
362
  readonly lengthEquals: typeof lengthEquals$1;
364
363
  readonly lengthNotEquals: typeof lengthNotEquals;
365
- readonly longerThan: typeof longerThan;
364
+ readonly longerThan: typeof longerThan$1;
366
365
  readonly longerThanOrEquals: typeof longerThanOrEquals;
367
366
  readonly maxLength: typeof maxLength;
368
367
  readonly minLength: typeof minLength;
@@ -386,7 +385,7 @@ declare const baseEnforceLazy: {
386
385
  readonly isNotEmpty: (value: unknown) => boolean;
387
386
  readonly lengthEquals: typeof lengthEquals$1;
388
387
  readonly lengthNotEquals: typeof lengthNotEquals;
389
- readonly longerThan: typeof longerThan;
388
+ readonly longerThan: typeof longerThan$1;
390
389
  readonly longerThanOrEquals: typeof longerThanOrEquals;
391
390
  readonly maxLength: typeof maxLength;
392
391
  readonly minLength: typeof minLength;
@@ -410,7 +409,7 @@ declare const baseEnforceLazy: {
410
409
  readonly isNotEmpty: (value: unknown) => boolean;
411
410
  readonly lengthEquals: typeof lengthEquals$1;
412
411
  readonly lengthNotEquals: typeof lengthNotEquals;
413
- readonly longerThan: typeof longerThan;
412
+ readonly longerThan: typeof longerThan$1;
414
413
  readonly longerThanOrEquals: typeof longerThanOrEquals;
415
414
  readonly maxLength: typeof maxLength;
416
415
  readonly minLength: typeof minLength;
@@ -434,7 +433,7 @@ declare const baseEnforceLazy: {
434
433
  readonly isNotEmpty: (value: unknown) => boolean;
435
434
  readonly lengthEquals: typeof lengthEquals$1;
436
435
  readonly lengthNotEquals: typeof lengthNotEquals;
437
- readonly longerThan: typeof longerThan;
436
+ readonly longerThan: typeof longerThan$1;
438
437
  readonly longerThanOrEquals: typeof longerThanOrEquals;
439
438
  readonly maxLength: typeof maxLength;
440
439
  readonly minLength: typeof minLength;
@@ -458,7 +457,7 @@ declare const baseEnforceLazy: {
458
457
  readonly isNotEmpty: (value: unknown) => boolean;
459
458
  readonly lengthEquals: typeof lengthEquals$1;
460
459
  readonly lengthNotEquals: typeof lengthNotEquals;
461
- readonly longerThan: typeof longerThan;
460
+ readonly longerThan: typeof longerThan$1;
462
461
  readonly longerThanOrEquals: typeof longerThanOrEquals;
463
462
  readonly maxLength: typeof maxLength;
464
463
  readonly minLength: typeof minLength;
@@ -482,7 +481,7 @@ declare const baseEnforceLazy: {
482
481
  readonly isNotEmpty: (value: unknown) => boolean;
483
482
  readonly lengthEquals: typeof lengthEquals$1;
484
483
  readonly lengthNotEquals: typeof lengthNotEquals;
485
- readonly longerThan: typeof longerThan;
484
+ readonly longerThan: typeof longerThan$1;
486
485
  readonly longerThanOrEquals: typeof longerThanOrEquals;
487
486
  readonly maxLength: typeof maxLength;
488
487
  readonly minLength: typeof minLength;
@@ -506,7 +505,7 @@ declare const baseEnforceLazy: {
506
505
  readonly isNotEmpty: (value: unknown) => boolean;
507
506
  readonly lengthEquals: typeof lengthEquals$1;
508
507
  readonly lengthNotEquals: typeof lengthNotEquals;
509
- readonly longerThan: typeof longerThan;
508
+ readonly longerThan: typeof longerThan$1;
510
509
  readonly longerThanOrEquals: typeof longerThanOrEquals;
511
510
  readonly maxLength: typeof maxLength;
512
511
  readonly minLength: typeof minLength;
@@ -530,7 +529,7 @@ declare const baseEnforceLazy: {
530
529
  readonly isNotEmpty: (value: unknown) => boolean;
531
530
  readonly lengthEquals: typeof lengthEquals$1;
532
531
  readonly lengthNotEquals: typeof lengthNotEquals;
533
- readonly longerThan: typeof longerThan;
532
+ readonly longerThan: typeof longerThan$1;
534
533
  readonly longerThanOrEquals: typeof longerThanOrEquals;
535
534
  readonly maxLength: typeof maxLength;
536
535
  readonly minLength: typeof minLength;
@@ -554,7 +553,7 @@ declare const baseEnforceLazy: {
554
553
  readonly isNotEmpty: (value: unknown) => boolean;
555
554
  readonly lengthEquals: typeof lengthEquals$1;
556
555
  readonly lengthNotEquals: typeof lengthNotEquals;
557
- readonly longerThan: typeof longerThan;
556
+ readonly longerThan: typeof longerThan$1;
558
557
  readonly longerThanOrEquals: typeof longerThanOrEquals;
559
558
  readonly maxLength: typeof maxLength;
560
559
  readonly minLength: typeof minLength;
@@ -578,7 +577,7 @@ declare const baseEnforceLazy: {
578
577
  readonly isNotEmpty: (value: unknown) => boolean;
579
578
  readonly lengthEquals: typeof lengthEquals$1;
580
579
  readonly lengthNotEquals: typeof lengthNotEquals;
581
- readonly longerThan: typeof longerThan;
580
+ readonly longerThan: typeof longerThan$1;
582
581
  readonly longerThanOrEquals: typeof longerThanOrEquals;
583
582
  readonly maxLength: typeof maxLength;
584
583
  readonly minLength: typeof minLength;
@@ -602,7 +601,7 @@ declare const baseEnforceLazy: {
602
601
  readonly isNotEmpty: (value: unknown) => boolean;
603
602
  readonly lengthEquals: typeof lengthEquals$1;
604
603
  readonly lengthNotEquals: typeof lengthNotEquals;
605
- readonly longerThan: typeof longerThan;
604
+ readonly longerThan: typeof longerThan$1;
606
605
  readonly longerThanOrEquals: typeof longerThanOrEquals;
607
606
  readonly maxLength: typeof maxLength;
608
607
  readonly minLength: typeof minLength;
@@ -3103,7 +3102,7 @@ declare const baseEnforceLazy: {
3103
3102
  readonly isString: typeof isString;
3104
3103
  readonly lengthEquals: typeof lengthEquals$1;
3105
3104
  readonly lengthNotEquals: typeof lengthNotEquals;
3106
- readonly longerThan: typeof longerThan;
3105
+ readonly longerThan: typeof longerThan$1;
3107
3106
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3108
3107
  readonly matches: typeof matches;
3109
3108
  readonly maxLength: typeof maxLength;
@@ -3150,7 +3149,7 @@ declare const baseEnforceLazy: {
3150
3149
  readonly isString: typeof isString;
3151
3150
  readonly lengthEquals: typeof lengthEquals$1;
3152
3151
  readonly lengthNotEquals: typeof lengthNotEquals;
3153
- readonly longerThan: typeof longerThan;
3152
+ readonly longerThan: typeof longerThan$1;
3154
3153
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3155
3154
  readonly matches: typeof matches;
3156
3155
  readonly maxLength: typeof maxLength;
@@ -3197,7 +3196,7 @@ declare const baseEnforceLazy: {
3197
3196
  readonly isString: typeof isString;
3198
3197
  readonly lengthEquals: typeof lengthEquals$1;
3199
3198
  readonly lengthNotEquals: typeof lengthNotEquals;
3200
- readonly longerThan: typeof longerThan;
3199
+ readonly longerThan: typeof longerThan$1;
3201
3200
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3202
3201
  readonly matches: typeof matches;
3203
3202
  readonly maxLength: typeof maxLength;
@@ -3244,7 +3243,7 @@ declare const baseEnforceLazy: {
3244
3243
  readonly isString: typeof isString;
3245
3244
  readonly lengthEquals: typeof lengthEquals$1;
3246
3245
  readonly lengthNotEquals: typeof lengthNotEquals;
3247
- readonly longerThan: typeof longerThan;
3246
+ readonly longerThan: typeof longerThan$1;
3248
3247
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3249
3248
  readonly matches: typeof matches;
3250
3249
  readonly maxLength: typeof maxLength;
@@ -3291,7 +3290,7 @@ declare const baseEnforceLazy: {
3291
3290
  readonly isString: typeof isString;
3292
3291
  readonly lengthEquals: typeof lengthEquals$1;
3293
3292
  readonly lengthNotEquals: typeof lengthNotEquals;
3294
- readonly longerThan: typeof longerThan;
3293
+ readonly longerThan: typeof longerThan$1;
3295
3294
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3296
3295
  readonly matches: typeof matches;
3297
3296
  readonly maxLength: typeof maxLength;
@@ -3338,7 +3337,7 @@ declare const baseEnforceLazy: {
3338
3337
  readonly isString: typeof isString;
3339
3338
  readonly lengthEquals: typeof lengthEquals$1;
3340
3339
  readonly lengthNotEquals: typeof lengthNotEquals;
3341
- readonly longerThan: typeof longerThan;
3340
+ readonly longerThan: typeof longerThan$1;
3342
3341
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3343
3342
  readonly matches: typeof matches;
3344
3343
  readonly maxLength: typeof maxLength;
@@ -3385,7 +3384,7 @@ declare const baseEnforceLazy: {
3385
3384
  readonly isString: typeof isString;
3386
3385
  readonly lengthEquals: typeof lengthEquals$1;
3387
3386
  readonly lengthNotEquals: typeof lengthNotEquals;
3388
- readonly longerThan: typeof longerThan;
3387
+ readonly longerThan: typeof longerThan$1;
3389
3388
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3390
3389
  readonly matches: typeof matches;
3391
3390
  readonly maxLength: typeof maxLength;
@@ -3432,7 +3431,7 @@ declare const baseEnforceLazy: {
3432
3431
  readonly isString: typeof isString;
3433
3432
  readonly lengthEquals: typeof lengthEquals$1;
3434
3433
  readonly lengthNotEquals: typeof lengthNotEquals;
3435
- readonly longerThan: typeof longerThan;
3434
+ readonly longerThan: typeof longerThan$1;
3436
3435
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3437
3436
  readonly matches: typeof matches;
3438
3437
  readonly maxLength: typeof maxLength;
@@ -3479,7 +3478,7 @@ declare const baseEnforceLazy: {
3479
3478
  readonly isString: typeof isString;
3480
3479
  readonly lengthEquals: typeof lengthEquals$1;
3481
3480
  readonly lengthNotEquals: typeof lengthNotEquals;
3482
- readonly longerThan: typeof longerThan;
3481
+ readonly longerThan: typeof longerThan$1;
3483
3482
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3484
3483
  readonly matches: typeof matches;
3485
3484
  readonly maxLength: typeof maxLength;
@@ -3526,7 +3525,7 @@ declare const baseEnforceLazy: {
3526
3525
  readonly isString: typeof isString;
3527
3526
  readonly lengthEquals: typeof lengthEquals$1;
3528
3527
  readonly lengthNotEquals: typeof lengthNotEquals;
3529
- readonly longerThan: typeof longerThan;
3528
+ readonly longerThan: typeof longerThan$1;
3530
3529
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3531
3530
  readonly matches: typeof matches;
3532
3531
  readonly maxLength: typeof maxLength;
@@ -3573,7 +3572,7 @@ declare const baseEnforceLazy: {
3573
3572
  readonly isString: typeof isString;
3574
3573
  readonly lengthEquals: typeof lengthEquals$1;
3575
3574
  readonly lengthNotEquals: typeof lengthNotEquals;
3576
- readonly longerThan: typeof longerThan;
3575
+ readonly longerThan: typeof longerThan$1;
3577
3576
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3578
3577
  readonly matches: typeof matches;
3579
3578
  readonly maxLength: typeof maxLength;
@@ -3620,7 +3619,7 @@ declare const baseEnforceLazy: {
3620
3619
  readonly isString: typeof isString;
3621
3620
  readonly lengthEquals: typeof lengthEquals$1;
3622
3621
  readonly lengthNotEquals: typeof lengthNotEquals;
3623
- readonly longerThan: typeof longerThan;
3622
+ readonly longerThan: typeof longerThan$1;
3624
3623
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3625
3624
  readonly matches: typeof matches;
3626
3625
  readonly maxLength: typeof maxLength;
@@ -3667,7 +3666,7 @@ declare const baseEnforceLazy: {
3667
3666
  readonly isString: typeof isString;
3668
3667
  readonly lengthEquals: typeof lengthEquals$1;
3669
3668
  readonly lengthNotEquals: typeof lengthNotEquals;
3670
- readonly longerThan: typeof longerThan;
3669
+ readonly longerThan: typeof longerThan$1;
3671
3670
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3672
3671
  readonly matches: typeof matches;
3673
3672
  readonly maxLength: typeof maxLength;
@@ -3714,7 +3713,7 @@ declare const baseEnforceLazy: {
3714
3713
  readonly isString: typeof isString;
3715
3714
  readonly lengthEquals: typeof lengthEquals$1;
3716
3715
  readonly lengthNotEquals: typeof lengthNotEquals;
3717
- readonly longerThan: typeof longerThan;
3716
+ readonly longerThan: typeof longerThan$1;
3718
3717
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3719
3718
  readonly matches: typeof matches;
3720
3719
  readonly maxLength: typeof maxLength;
@@ -3761,7 +3760,7 @@ declare const baseEnforceLazy: {
3761
3760
  readonly isString: typeof isString;
3762
3761
  readonly lengthEquals: typeof lengthEquals$1;
3763
3762
  readonly lengthNotEquals: typeof lengthNotEquals;
3764
- readonly longerThan: typeof longerThan;
3763
+ readonly longerThan: typeof longerThan$1;
3765
3764
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3766
3765
  readonly matches: typeof matches;
3767
3766
  readonly maxLength: typeof maxLength;
@@ -3808,7 +3807,7 @@ declare const baseEnforceLazy: {
3808
3807
  readonly isString: typeof isString;
3809
3808
  readonly lengthEquals: typeof lengthEquals$1;
3810
3809
  readonly lengthNotEquals: typeof lengthNotEquals;
3811
- readonly longerThan: typeof longerThan;
3810
+ readonly longerThan: typeof longerThan$1;
3812
3811
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3813
3812
  readonly matches: typeof matches;
3814
3813
  readonly maxLength: typeof maxLength;
@@ -3855,7 +3854,7 @@ declare const baseEnforceLazy: {
3855
3854
  readonly isString: typeof isString;
3856
3855
  readonly lengthEquals: typeof lengthEquals$1;
3857
3856
  readonly lengthNotEquals: typeof lengthNotEquals;
3858
- readonly longerThan: typeof longerThan;
3857
+ readonly longerThan: typeof longerThan$1;
3859
3858
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3860
3859
  readonly matches: typeof matches;
3861
3860
  readonly maxLength: typeof maxLength;
@@ -3902,7 +3901,7 @@ declare const baseEnforceLazy: {
3902
3901
  readonly isString: typeof isString;
3903
3902
  readonly lengthEquals: typeof lengthEquals$1;
3904
3903
  readonly lengthNotEquals: typeof lengthNotEquals;
3905
- readonly longerThan: typeof longerThan;
3904
+ readonly longerThan: typeof longerThan$1;
3906
3905
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3907
3906
  readonly matches: typeof matches;
3908
3907
  readonly maxLength: typeof maxLength;
@@ -3949,7 +3948,7 @@ declare const baseEnforceLazy: {
3949
3948
  readonly isString: typeof isString;
3950
3949
  readonly lengthEquals: typeof lengthEquals$1;
3951
3950
  readonly lengthNotEquals: typeof lengthNotEquals;
3952
- readonly longerThan: typeof longerThan;
3951
+ readonly longerThan: typeof longerThan$1;
3953
3952
  readonly longerThanOrEquals: typeof longerThanOrEquals;
3954
3953
  readonly matches: typeof matches;
3955
3954
  readonly maxLength: typeof maxLength;
@@ -3996,7 +3995,7 @@ declare const baseEnforceLazy: {
3996
3995
  readonly isString: typeof isString;
3997
3996
  readonly lengthEquals: typeof lengthEquals$1;
3998
3997
  readonly lengthNotEquals: typeof lengthNotEquals;
3999
- readonly longerThan: typeof longerThan;
3998
+ readonly longerThan: typeof longerThan$1;
4000
3999
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4001
4000
  readonly matches: typeof matches;
4002
4001
  readonly maxLength: typeof maxLength;
@@ -4043,7 +4042,7 @@ declare const baseEnforceLazy: {
4043
4042
  readonly isString: typeof isString;
4044
4043
  readonly lengthEquals: typeof lengthEquals$1;
4045
4044
  readonly lengthNotEquals: typeof lengthNotEquals;
4046
- readonly longerThan: typeof longerThan;
4045
+ readonly longerThan: typeof longerThan$1;
4047
4046
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4048
4047
  readonly matches: typeof matches;
4049
4048
  readonly maxLength: typeof maxLength;
@@ -4090,7 +4089,7 @@ declare const baseEnforceLazy: {
4090
4089
  readonly isString: typeof isString;
4091
4090
  readonly lengthEquals: typeof lengthEquals$1;
4092
4091
  readonly lengthNotEquals: typeof lengthNotEquals;
4093
- readonly longerThan: typeof longerThan;
4092
+ readonly longerThan: typeof longerThan$1;
4094
4093
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4095
4094
  readonly matches: typeof matches;
4096
4095
  readonly maxLength: typeof maxLength;
@@ -4137,7 +4136,7 @@ declare const baseEnforceLazy: {
4137
4136
  readonly isString: typeof isString;
4138
4137
  readonly lengthEquals: typeof lengthEquals$1;
4139
4138
  readonly lengthNotEquals: typeof lengthNotEquals;
4140
- readonly longerThan: typeof longerThan;
4139
+ readonly longerThan: typeof longerThan$1;
4141
4140
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4142
4141
  readonly matches: typeof matches;
4143
4142
  readonly maxLength: typeof maxLength;
@@ -4184,7 +4183,7 @@ declare const baseEnforceLazy: {
4184
4183
  readonly isString: typeof isString;
4185
4184
  readonly lengthEquals: typeof lengthEquals$1;
4186
4185
  readonly lengthNotEquals: typeof lengthNotEquals;
4187
- readonly longerThan: typeof longerThan;
4186
+ readonly longerThan: typeof longerThan$1;
4188
4187
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4189
4188
  readonly matches: typeof matches;
4190
4189
  readonly maxLength: typeof maxLength;
@@ -4231,7 +4230,7 @@ declare const baseEnforceLazy: {
4231
4230
  readonly isString: typeof isString;
4232
4231
  readonly lengthEquals: typeof lengthEquals$1;
4233
4232
  readonly lengthNotEquals: typeof lengthNotEquals;
4234
- readonly longerThan: typeof longerThan;
4233
+ readonly longerThan: typeof longerThan$1;
4235
4234
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4236
4235
  readonly matches: typeof matches;
4237
4236
  readonly maxLength: typeof maxLength;
@@ -4278,7 +4277,7 @@ declare const baseEnforceLazy: {
4278
4277
  readonly isString: typeof isString;
4279
4278
  readonly lengthEquals: typeof lengthEquals$1;
4280
4279
  readonly lengthNotEquals: typeof lengthNotEquals;
4281
- readonly longerThan: typeof longerThan;
4280
+ readonly longerThan: typeof longerThan$1;
4282
4281
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4283
4282
  readonly matches: typeof matches;
4284
4283
  readonly maxLength: typeof maxLength;
@@ -4325,7 +4324,7 @@ declare const baseEnforceLazy: {
4325
4324
  readonly isString: typeof isString;
4326
4325
  readonly lengthEquals: typeof lengthEquals$1;
4327
4326
  readonly lengthNotEquals: typeof lengthNotEquals;
4328
- readonly longerThan: typeof longerThan;
4327
+ readonly longerThan: typeof longerThan$1;
4329
4328
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4330
4329
  readonly matches: typeof matches;
4331
4330
  readonly maxLength: typeof maxLength;
@@ -4372,7 +4371,7 @@ declare const baseEnforceLazy: {
4372
4371
  readonly isString: typeof isString;
4373
4372
  readonly lengthEquals: typeof lengthEquals$1;
4374
4373
  readonly lengthNotEquals: typeof lengthNotEquals;
4375
- readonly longerThan: typeof longerThan;
4374
+ readonly longerThan: typeof longerThan$1;
4376
4375
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4377
4376
  readonly matches: typeof matches;
4378
4377
  readonly maxLength: typeof maxLength;
@@ -4419,7 +4418,7 @@ declare const baseEnforceLazy: {
4419
4418
  readonly isString: typeof isString;
4420
4419
  readonly lengthEquals: typeof lengthEquals$1;
4421
4420
  readonly lengthNotEquals: typeof lengthNotEquals;
4422
- readonly longerThan: typeof longerThan;
4421
+ readonly longerThan: typeof longerThan$1;
4423
4422
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4424
4423
  readonly matches: typeof matches;
4425
4424
  readonly maxLength: typeof maxLength;
@@ -4466,7 +4465,7 @@ declare const baseEnforceLazy: {
4466
4465
  readonly isString: typeof isString;
4467
4466
  readonly lengthEquals: typeof lengthEquals$1;
4468
4467
  readonly lengthNotEquals: typeof lengthNotEquals;
4469
- readonly longerThan: typeof longerThan;
4468
+ readonly longerThan: typeof longerThan$1;
4470
4469
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4471
4470
  readonly matches: typeof matches;
4472
4471
  readonly maxLength: typeof maxLength;
@@ -4513,7 +4512,7 @@ declare const baseEnforceLazy: {
4513
4512
  readonly isString: typeof isString;
4514
4513
  readonly lengthEquals: typeof lengthEquals$1;
4515
4514
  readonly lengthNotEquals: typeof lengthNotEquals;
4516
- readonly longerThan: typeof longerThan;
4515
+ readonly longerThan: typeof longerThan$1;
4517
4516
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4518
4517
  readonly matches: typeof matches;
4519
4518
  readonly maxLength: typeof maxLength;
@@ -4560,7 +4559,7 @@ declare const baseEnforceLazy: {
4560
4559
  readonly isString: typeof isString;
4561
4560
  readonly lengthEquals: typeof lengthEquals$1;
4562
4561
  readonly lengthNotEquals: typeof lengthNotEquals;
4563
- readonly longerThan: typeof longerThan;
4562
+ readonly longerThan: typeof longerThan$1;
4564
4563
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4565
4564
  readonly matches: typeof matches;
4566
4565
  readonly maxLength: typeof maxLength;
@@ -4607,7 +4606,7 @@ declare const baseEnforceLazy: {
4607
4606
  readonly isString: typeof isString;
4608
4607
  readonly lengthEquals: typeof lengthEquals$1;
4609
4608
  readonly lengthNotEquals: typeof lengthNotEquals;
4610
- readonly longerThan: typeof longerThan;
4609
+ readonly longerThan: typeof longerThan$1;
4611
4610
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4612
4611
  readonly matches: typeof matches;
4613
4612
  readonly maxLength: typeof maxLength;
@@ -4654,7 +4653,7 @@ declare const baseEnforceLazy: {
4654
4653
  readonly isString: typeof isString;
4655
4654
  readonly lengthEquals: typeof lengthEquals$1;
4656
4655
  readonly lengthNotEquals: typeof lengthNotEquals;
4657
- readonly longerThan: typeof longerThan;
4656
+ readonly longerThan: typeof longerThan$1;
4658
4657
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4659
4658
  readonly matches: typeof matches;
4660
4659
  readonly maxLength: typeof maxLength;
@@ -4701,7 +4700,7 @@ declare const baseEnforceLazy: {
4701
4700
  readonly isString: typeof isString;
4702
4701
  readonly lengthEquals: typeof lengthEquals$1;
4703
4702
  readonly lengthNotEquals: typeof lengthNotEquals;
4704
- readonly longerThan: typeof longerThan;
4703
+ readonly longerThan: typeof longerThan$1;
4705
4704
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4706
4705
  readonly matches: typeof matches;
4707
4706
  readonly maxLength: typeof maxLength;
@@ -4748,7 +4747,7 @@ declare const baseEnforceLazy: {
4748
4747
  readonly isString: typeof isString;
4749
4748
  readonly lengthEquals: typeof lengthEquals$1;
4750
4749
  readonly lengthNotEquals: typeof lengthNotEquals;
4751
- readonly longerThan: typeof longerThan;
4750
+ readonly longerThan: typeof longerThan$1;
4752
4751
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4753
4752
  readonly matches: typeof matches;
4754
4753
  readonly maxLength: typeof maxLength;
@@ -4795,7 +4794,7 @@ declare const baseEnforceLazy: {
4795
4794
  readonly isString: typeof isString;
4796
4795
  readonly lengthEquals: typeof lengthEquals$1;
4797
4796
  readonly lengthNotEquals: typeof lengthNotEquals;
4798
- readonly longerThan: typeof longerThan;
4797
+ readonly longerThan: typeof longerThan$1;
4799
4798
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4800
4799
  readonly matches: typeof matches;
4801
4800
  readonly maxLength: typeof maxLength;
@@ -4842,7 +4841,7 @@ declare const baseEnforceLazy: {
4842
4841
  readonly isString: typeof isString;
4843
4842
  readonly lengthEquals: typeof lengthEquals$1;
4844
4843
  readonly lengthNotEquals: typeof lengthNotEquals;
4845
- readonly longerThan: typeof longerThan;
4844
+ readonly longerThan: typeof longerThan$1;
4846
4845
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4847
4846
  readonly matches: typeof matches;
4848
4847
  readonly maxLength: typeof maxLength;
@@ -4889,7 +4888,7 @@ declare const baseEnforceLazy: {
4889
4888
  readonly isString: typeof isString;
4890
4889
  readonly lengthEquals: typeof lengthEquals$1;
4891
4890
  readonly lengthNotEquals: typeof lengthNotEquals;
4892
- readonly longerThan: typeof longerThan;
4891
+ readonly longerThan: typeof longerThan$1;
4893
4892
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4894
4893
  readonly matches: typeof matches;
4895
4894
  readonly maxLength: typeof maxLength;
@@ -4936,7 +4935,7 @@ declare const baseEnforceLazy: {
4936
4935
  readonly isString: typeof isString;
4937
4936
  readonly lengthEquals: typeof lengthEquals$1;
4938
4937
  readonly lengthNotEquals: typeof lengthNotEquals;
4939
- readonly longerThan: typeof longerThan;
4938
+ readonly longerThan: typeof longerThan$1;
4940
4939
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4941
4940
  readonly matches: typeof matches;
4942
4941
  readonly maxLength: typeof maxLength;
@@ -4983,7 +4982,7 @@ declare const baseEnforceLazy: {
4983
4982
  readonly isString: typeof isString;
4984
4983
  readonly lengthEquals: typeof lengthEquals$1;
4985
4984
  readonly lengthNotEquals: typeof lengthNotEquals;
4986
- readonly longerThan: typeof longerThan;
4985
+ readonly longerThan: typeof longerThan$1;
4987
4986
  readonly longerThanOrEquals: typeof longerThanOrEquals;
4988
4987
  readonly matches: typeof matches;
4989
4988
  readonly maxLength: typeof maxLength;
@@ -5030,7 +5029,7 @@ declare const baseEnforceLazy: {
5030
5029
  readonly isString: typeof isString;
5031
5030
  readonly lengthEquals: typeof lengthEquals$1;
5032
5031
  readonly lengthNotEquals: typeof lengthNotEquals;
5033
- readonly longerThan: typeof longerThan;
5032
+ readonly longerThan: typeof longerThan$1;
5034
5033
  readonly longerThanOrEquals: typeof longerThanOrEquals;
5035
5034
  readonly matches: typeof matches;
5036
5035
  readonly maxLength: typeof maxLength;
@@ -5077,7 +5076,7 @@ declare const baseEnforceLazy: {
5077
5076
  readonly isString: typeof isString;
5078
5077
  readonly lengthEquals: typeof lengthEquals$1;
5079
5078
  readonly lengthNotEquals: typeof lengthNotEquals;
5080
- readonly longerThan: typeof longerThan;
5079
+ readonly longerThan: typeof longerThan$1;
5081
5080
  readonly longerThanOrEquals: typeof longerThanOrEquals;
5082
5081
  readonly matches: typeof matches;
5083
5082
  readonly maxLength: typeof maxLength;
@@ -5124,7 +5123,7 @@ declare const baseEnforceLazy: {
5124
5123
  readonly isString: typeof isString;
5125
5124
  readonly lengthEquals: typeof lengthEquals$1;
5126
5125
  readonly lengthNotEquals: typeof lengthNotEquals;
5127
- readonly longerThan: typeof longerThan;
5126
+ readonly longerThan: typeof longerThan$1;
5128
5127
  readonly longerThanOrEquals: typeof longerThanOrEquals;
5129
5128
  readonly matches: typeof matches;
5130
5129
  readonly maxLength: typeof maxLength;
@@ -5171,7 +5170,7 @@ declare const baseEnforceLazy: {
5171
5170
  readonly isString: typeof isString;
5172
5171
  readonly lengthEquals: typeof lengthEquals$1;
5173
5172
  readonly lengthNotEquals: typeof lengthNotEquals;
5174
- readonly longerThan: typeof longerThan;
5173
+ readonly longerThan: typeof longerThan$1;
5175
5174
  readonly longerThanOrEquals: typeof longerThanOrEquals;
5176
5175
  readonly matches: typeof matches;
5177
5176
  readonly maxLength: typeof maxLength;
@@ -5209,12 +5208,19 @@ declare const baseEnforceLazy: {
5209
5208
  isBlank: (...args: any[]) => AnyRuleInstance;
5210
5209
  isNotBlank: (...args: any[]) => AnyRuleInstance;
5211
5210
  isArrayOf: <Rules extends RuleInstance<any, any>[]>(...rules: Rules) => IsArrayOfRuleInstance<MultiTypeInput<Rules>, MultiTypeInputArgs<Rules>>;
5211
+ list: <Rules extends RuleInstance<any, any>[]>(...rules: Rules) => IsArrayOfRuleInstance<MultiTypeInput<Rules>, MultiTypeInputArgs<Rules>>;
5212
+ lazy: <T$1>(factory: () => RuleInstance<T$1, any>) => LazyRuleInstance<T$1>;
5212
5213
  loose: <S extends Record<string, RuleInstance<any>>>(schema: S) => LooseRuleInstance<S>;
5213
5214
  optional: <R extends RuleInstance<any>>(rule: R) => OptionalRuleInstance<R["infer"]>;
5214
5215
  partial: <S extends Record<string, RuleInstance<any>>>(schema: S) => PartialRuleInstance<S>;
5215
5216
  pick: <S extends Record<string, RuleInstance<any>>>(schema: S, keys: string[] | string) => PickRuleInstance<S>;
5216
5217
  omit: <S extends Record<string, RuleInstance<any>>>(schema: S, keys: string[] | string) => OmitRuleInstance<S>;
5217
5218
  shape: <S extends Record<string, RuleInstance<any>>>(schema: S) => ShapeRuleInstance<S>;
5219
+ record: {
5220
+ <V extends RuleInstance<any, any>>(valueRule: V): RecordRuleInstance<never, V>;
5221
+ <K$1 extends RuleInstance<string, any>, V extends RuleInstance<any, any>>(keyRule: K$1, valueRule: V): RecordRuleInstance<K$1, V>;
5222
+ };
5223
+ tuple: <Rules extends RuleInstance<any, any>[]>(...rules: Rules) => TupleRuleInstance<Rules>;
5218
5224
  allOf: <T$1>(...rules: any[]) => AllOfRuleInstance<T$1>;
5219
5225
  anyOf: <Rules extends RuleInstance<any>[]>(...rules: Rules) => AnyOfRuleInstance<Rules[number]["infer"]>;
5220
5226
  noneOf: <T$1>(...rules: any[]) => NoneOfRuleInstance<T$1>;
@@ -5306,6 +5312,9 @@ type Enforce = typeof enforceEager & typeof enforceLazy & {
5306
5312
  extend: ExtendFn;
5307
5313
  context: ContextFn;
5308
5314
  };
5315
+ declare namespace enforce {
5316
+ type infer<R extends RuleInstance<any, any>> = R['infer'];
5317
+ }
5309
5318
  /**
5310
5319
  * Main validation function supporting both eager (imperative) and lazy (builder) APIs.
5311
5320
  *