@decaf-ts/decorator-validation 1.20.0 → 1.21.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 (168) hide show
  1. package/lib/cjs/index.cjs +1 -1
  2. package/lib/esm/index.js +1 -1
  3. package/lib/types/constants/index.d.cts +2 -2
  4. package/lib/types/constants/index.d.mts +2 -2
  5. package/lib/types/index.d.cts +7 -7
  6. package/lib/types/index.d.mts +7 -7
  7. package/lib/types/model/Builder.d.cts +3 -3
  8. package/lib/types/model/Builder.d.mts +3 -3
  9. package/lib/types/model/Model.d.cts +4 -4
  10. package/lib/types/model/Model.d.mts +4 -4
  11. package/lib/types/model/ModelErrorDefinition.d.cts +1 -1
  12. package/lib/types/model/ModelErrorDefinition.d.mts +1 -1
  13. package/lib/types/model/ModelRegistry.d.cts +3 -3
  14. package/lib/types/model/ModelRegistry.d.mts +3 -3
  15. package/lib/types/model/construction.d.cts +1 -1
  16. package/lib/types/model/construction.d.mts +1 -1
  17. package/lib/types/model/index.d.cts +10 -10
  18. package/lib/types/model/index.d.mts +10 -10
  19. package/lib/types/model/types.d.cts +3 -3
  20. package/lib/types/model/types.d.mts +3 -3
  21. package/lib/types/model/utils.d.cts +1 -1
  22. package/lib/types/model/utils.d.mts +1 -1
  23. package/lib/types/model/validation.d.cts +3 -3
  24. package/lib/types/model/validation.d.mts +3 -3
  25. package/lib/types/overrides/Metadata.d.cts +3 -3
  26. package/lib/types/overrides/Metadata.d.mts +3 -3
  27. package/lib/types/overrides/index.d.cts +3 -3
  28. package/lib/types/overrides/index.d.mts +3 -3
  29. package/lib/types/overrides/types.d.cts +1 -1
  30. package/lib/types/overrides/types.d.mts +1 -1
  31. package/lib/types/types/index.d.cts +1 -1
  32. package/lib/types/types/index.d.mts +1 -1
  33. package/lib/types/types/validation.d.cts +2 -2
  34. package/lib/types/types/validation.d.mts +2 -2
  35. package/lib/types/utils/index.d.cts +11 -11
  36. package/lib/types/utils/index.d.mts +11 -11
  37. package/lib/types/utils/serialization.d.cts +1 -1
  38. package/lib/types/utils/serialization.d.mts +1 -1
  39. package/lib/types/utils/serializers.d.cts +2 -2
  40. package/lib/types/utils/serializers.d.mts +2 -2
  41. package/lib/types/utils/types.d.cts +1 -1
  42. package/lib/types/utils/types.d.mts +1 -1
  43. package/lib/types/validation/Validation.d.cts +2 -2
  44. package/lib/types/validation/Validation.d.mts +2 -2
  45. package/lib/types/validation/Validators/AsyncValidator.d.cts +3 -3
  46. package/lib/types/validation/Validators/AsyncValidator.d.mts +3 -3
  47. package/lib/types/validation/Validators/BaseValidator.d.cts +3 -3
  48. package/lib/types/validation/Validators/BaseValidator.d.mts +3 -3
  49. package/lib/types/validation/Validators/DateValidator.d.cts +2 -2
  50. package/lib/types/validation/Validators/DateValidator.d.mts +2 -2
  51. package/lib/types/validation/Validators/DiffValidator.d.cts +3 -3
  52. package/lib/types/validation/Validators/DiffValidator.d.mts +3 -3
  53. package/lib/types/validation/Validators/EmailValidator.d.cts +2 -2
  54. package/lib/types/validation/Validators/EmailValidator.d.mts +2 -2
  55. package/lib/types/validation/Validators/EqualsValidator.d.cts +3 -3
  56. package/lib/types/validation/Validators/EqualsValidator.d.mts +3 -3
  57. package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.cts +3 -3
  58. package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.mts +3 -3
  59. package/lib/types/validation/Validators/GreaterThanValidator.d.cts +3 -3
  60. package/lib/types/validation/Validators/GreaterThanValidator.d.mts +3 -3
  61. package/lib/types/validation/Validators/LessThanOrEqualValidator.d.cts +3 -3
  62. package/lib/types/validation/Validators/LessThanOrEqualValidator.d.mts +3 -3
  63. package/lib/types/validation/Validators/LessThanValidator.d.cts +3 -3
  64. package/lib/types/validation/Validators/LessThanValidator.d.mts +3 -3
  65. package/lib/types/validation/Validators/ListValidator.d.cts +2 -2
  66. package/lib/types/validation/Validators/ListValidator.d.mts +2 -2
  67. package/lib/types/validation/Validators/MaxLengthValidator.d.cts +2 -2
  68. package/lib/types/validation/Validators/MaxLengthValidator.d.mts +2 -2
  69. package/lib/types/validation/Validators/MaxValidator.d.cts +2 -2
  70. package/lib/types/validation/Validators/MaxValidator.d.mts +2 -2
  71. package/lib/types/validation/Validators/MinLengthValidator.d.cts +2 -2
  72. package/lib/types/validation/Validators/MinLengthValidator.d.mts +2 -2
  73. package/lib/types/validation/Validators/MinValidator.d.cts +2 -2
  74. package/lib/types/validation/Validators/MinValidator.d.mts +2 -2
  75. package/lib/types/validation/Validators/OptionValidator.d.cts +2 -2
  76. package/lib/types/validation/Validators/OptionValidator.d.mts +2 -2
  77. package/lib/types/validation/Validators/PasswordValidator.d.cts +2 -2
  78. package/lib/types/validation/Validators/PasswordValidator.d.mts +2 -2
  79. package/lib/types/validation/Validators/PatternValidator.d.cts +2 -2
  80. package/lib/types/validation/Validators/PatternValidator.d.mts +2 -2
  81. package/lib/types/validation/Validators/RequiredValidator.d.cts +2 -2
  82. package/lib/types/validation/Validators/RequiredValidator.d.mts +2 -2
  83. package/lib/types/validation/Validators/StepValidator.d.cts +2 -2
  84. package/lib/types/validation/Validators/StepValidator.d.mts +2 -2
  85. package/lib/types/validation/Validators/TypeValidator.d.cts +2 -2
  86. package/lib/types/validation/Validators/TypeValidator.d.mts +2 -2
  87. package/lib/types/validation/Validators/URLValidator.d.cts +2 -2
  88. package/lib/types/validation/Validators/URLValidator.d.mts +2 -2
  89. package/lib/types/validation/Validators/Validator.d.cts +3 -3
  90. package/lib/types/validation/Validators/Validator.d.mts +3 -3
  91. package/lib/types/validation/Validators/ValidatorRegistry.d.cts +3 -3
  92. package/lib/types/validation/Validators/ValidatorRegistry.d.mts +3 -3
  93. package/lib/types/validation/Validators/decorators.d.cts +1 -1
  94. package/lib/types/validation/Validators/decorators.d.mts +1 -1
  95. package/lib/types/validation/Validators/index.d.cts +26 -26
  96. package/lib/types/validation/Validators/index.d.mts +26 -26
  97. package/lib/types/validation/decorators.d.cts +2 -2
  98. package/lib/types/validation/decorators.d.mts +2 -2
  99. package/lib/types/validation/index.d.cts +4 -4
  100. package/lib/types/validation/index.d.mts +4 -4
  101. package/lib/types/validation/types.d.cts +2 -2
  102. package/lib/types/validation/types.d.mts +2 -2
  103. package/package.json +1 -1
  104. package/lib/types/constants/errors.d.ts +0 -17
  105. package/lib/types/constants/index.d.ts +0 -2
  106. package/lib/types/constants/validation.d.ts +0 -16
  107. package/lib/types/index.d.ts +0 -20
  108. package/lib/types/model/Builder.d.ts +0 -86
  109. package/lib/types/model/Model.d.ts +0 -286
  110. package/lib/types/model/ModelErrorDefinition.d.ts +0 -22
  111. package/lib/types/model/ModelRegistry.d.ts +0 -181
  112. package/lib/types/model/constants.d.ts +0 -65
  113. package/lib/types/model/construction.d.ts +0 -46
  114. package/lib/types/model/decorators.d.ts +0 -47
  115. package/lib/types/model/index.d.ts +0 -10
  116. package/lib/types/model/types.d.ts +0 -145
  117. package/lib/types/model/utils.d.ts +0 -13
  118. package/lib/types/model/validation.d.ts +0 -92
  119. package/lib/types/overrides/Metadata.d.ts +0 -132
  120. package/lib/types/overrides/index.d.ts +0 -4
  121. package/lib/types/overrides/overrides.d.ts +0 -1
  122. package/lib/types/overrides/types.d.ts +0 -17
  123. package/lib/types/types/index.d.ts +0 -1
  124. package/lib/types/types/validation.d.ts +0 -28
  125. package/lib/types/utils/DateBuilder.d.ts +0 -121
  126. package/lib/types/utils/PathProxy.d.ts +0 -43
  127. package/lib/types/utils/constants.d.ts +0 -32
  128. package/lib/types/utils/dates.d.ts +0 -86
  129. package/lib/types/utils/equality.d.ts +0 -56
  130. package/lib/types/utils/hashing.d.ts +0 -82
  131. package/lib/types/utils/index.d.ts +0 -11
  132. package/lib/types/utils/registry.d.ts +0 -68
  133. package/lib/types/utils/serialization.d.ts +0 -12
  134. package/lib/types/utils/serializers.d.ts +0 -41
  135. package/lib/types/utils/strings.d.ts +0 -25
  136. package/lib/types/utils/types.d.ts +0 -35
  137. package/lib/types/validation/Validation.d.ts +0 -53
  138. package/lib/types/validation/Validators/AsyncValidator.d.ts +0 -72
  139. package/lib/types/validation/Validators/BaseValidator.d.ts +0 -118
  140. package/lib/types/validation/Validators/DateValidator.d.ts +0 -60
  141. package/lib/types/validation/Validators/DiffValidator.d.ts +0 -29
  142. package/lib/types/validation/Validators/EmailValidator.d.ts +0 -60
  143. package/lib/types/validation/Validators/EqualsValidator.d.ts +0 -29
  144. package/lib/types/validation/Validators/GreaterThanOrEqualValidator.d.ts +0 -29
  145. package/lib/types/validation/Validators/GreaterThanValidator.d.ts +0 -29
  146. package/lib/types/validation/Validators/LessThanOrEqualValidator.d.ts +0 -29
  147. package/lib/types/validation/Validators/LessThanValidator.d.ts +0 -29
  148. package/lib/types/validation/Validators/ListValidator.d.ts +0 -66
  149. package/lib/types/validation/Validators/MaxLengthValidator.d.ts +0 -29
  150. package/lib/types/validation/Validators/MaxValidator.d.ts +0 -74
  151. package/lib/types/validation/Validators/MinLengthValidator.d.ts +0 -29
  152. package/lib/types/validation/Validators/MinValidator.d.ts +0 -74
  153. package/lib/types/validation/Validators/OptionValidator.d.ts +0 -29
  154. package/lib/types/validation/Validators/PasswordValidator.d.ts +0 -28
  155. package/lib/types/validation/Validators/PatternValidator.d.ts +0 -103
  156. package/lib/types/validation/Validators/RequiredValidator.d.ts +0 -74
  157. package/lib/types/validation/Validators/StepValidator.d.ts +0 -29
  158. package/lib/types/validation/Validators/TypeValidator.d.ts +0 -79
  159. package/lib/types/validation/Validators/URLValidator.d.ts +0 -61
  160. package/lib/types/validation/Validators/Validator.d.ts +0 -65
  161. package/lib/types/validation/Validators/ValidatorRegistry.d.ts +0 -41
  162. package/lib/types/validation/Validators/constants.d.ts +0 -157
  163. package/lib/types/validation/Validators/decorators.d.ts +0 -12
  164. package/lib/types/validation/Validators/index.d.ts +0 -26
  165. package/lib/types/validation/Validators/utils.d.ts +0 -75
  166. package/lib/types/validation/decorators.d.ts +0 -313
  167. package/lib/types/validation/index.d.ts +0 -9
  168. package/lib/types/validation/types.d.ts +0 -309
package/lib/cjs/index.cjs CHANGED
@@ -35,7 +35,7 @@ __exportStar(require("./model/index.cjs"), exports);
35
35
  * @const VERSION
36
36
  * @memberOf module:decorator-validation
37
37
  */
38
- exports.VERSION = "1.19.0";
38
+ exports.VERSION = "1.20.0";
39
39
  /**
40
40
  * @description Current version of the reflection package
41
41
  * @summary Stores the semantic version number of the package
package/lib/esm/index.js CHANGED
@@ -18,7 +18,7 @@ export * from "./model/index.js";
18
18
  * @const VERSION
19
19
  * @memberOf module:decorator-validation
20
20
  */
21
- export const VERSION = "1.19.0";
21
+ export const VERSION = "1.20.0";
22
22
  /**
23
23
  * @description Current version of the reflection package
24
24
  * @summary Stores the semantic version number of the package
@@ -1,2 +1,2 @@
1
- export * from "./errors.cjs";
2
- export * from "./validation.cjs";
1
+ export * from "./errors.d.cts";
2
+ export * from "./validation.d.cts";
@@ -1,2 +1,2 @@
1
- export * from "./errors.js";
2
- export * from "./validation.js";
1
+ export * from "./errors.d.mts";
2
+ export * from "./validation.d.mts";
@@ -1,16 +1,16 @@
1
- export * from "./overrides/index.cjs";
2
- export * from "./constants/index.cjs";
3
- export * from "./types/index.cjs";
4
- export * from "./utils/index.cjs";
5
- export * from "./validation/index.cjs";
6
- export * from "./model/index.cjs";
1
+ export * from "./overrides/index.d.cts";
2
+ export * from "./constants/index.d.cts";
3
+ export * from "./types/index.d.cts";
4
+ export * from "./utils/index.d.cts";
5
+ export * from "./validation/index.d.cts";
6
+ export * from "./model/index.d.cts";
7
7
  /**
8
8
  * @description Current version of the reflection package
9
9
  * @summary Stores the semantic version number of the package
10
10
  * @const VERSION
11
11
  * @memberOf module:decorator-validation
12
12
  */
13
- export declare const VERSION = "1.19.0";
13
+ export declare const VERSION = "1.20.0";
14
14
  /**
15
15
  * @description Current version of the reflection package
16
16
  * @summary Stores the semantic version number of the package
@@ -1,16 +1,16 @@
1
- export * from "./overrides/index.js";
2
- export * from "./constants/index.js";
3
- export * from "./types/index.js";
4
- export * from "./utils/index.js";
5
- export * from "./validation/index.js";
6
- export * from "./model/index.js";
1
+ export * from "./overrides/index.d.mts";
2
+ export * from "./constants/index.d.mts";
3
+ export * from "./types/index.d.mts";
4
+ export * from "./utils/index.d.mts";
5
+ export * from "./validation/index.d.mts";
6
+ export * from "./model/index.d.mts";
7
7
  /**
8
8
  * @description Current version of the reflection package
9
9
  * @summary Stores the semantic version number of the package
10
10
  * @const VERSION
11
11
  * @memberOf module:decorator-validation
12
12
  */
13
- export declare const VERSION = "1.19.0";
13
+ export declare const VERSION = "1.20.0";
14
14
  /**
15
15
  * @description Current version of the reflection package
16
16
  * @summary Stores the semantic version number of the package
@@ -1,8 +1,8 @@
1
- import { Model } from "./Model.cjs";
1
+ import { Model } from "./Model.d.cts";
2
2
  import { ObjectAccumulator } from "typed-object-accumulator";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
- import { ComparisonValidatorOptions } from "../validation/types.cjs";
5
- import { ExtendedMetadata } from "../overrides/types.cjs";
4
+ import { ComparisonValidatorOptions } from "../validation/types.d.cts";
5
+ import { ExtendedMetadata } from "../overrides/types.d.cts";
6
6
  type BuildableModel = Model & Record<PropertyKey, any>;
7
7
  export interface DecorateOption<M extends Model> {
8
8
  decorate(...decorators: PropertyDecorator[]): ModelBuilder<M>;
@@ -1,8 +1,8 @@
1
- import { Model } from "./Model.js";
1
+ import { Model } from "./Model.d.mts";
2
2
  import { ObjectAccumulator } from "typed-object-accumulator";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
- import { ComparisonValidatorOptions } from "../validation/types.js";
5
- import { ExtendedMetadata } from "../overrides/types.js";
4
+ import { ComparisonValidatorOptions } from "../validation/types.d.mts";
5
+ import { ExtendedMetadata } from "../overrides/types.d.mts";
6
6
  type BuildableModel = Model & Record<PropertyKey, any>;
7
7
  export interface DecorateOption<M extends Model> {
8
8
  decorate(...decorators: PropertyDecorator[]): ModelBuilder<M>;
@@ -1,7 +1,7 @@
1
- import { BuilderRegistry } from "../utils/registry.cjs";
2
- import { ModelErrorDefinition } from "./ModelErrorDefinition.cjs";
3
- import { Comparable, Comparison, Hashable, ModelArg, ModelBuilderFunction, ModelConstructor, Serializable, Validatable } from "./types.cjs";
4
- import { ConditionalAsync } from "../types/index.cjs";
1
+ import { BuilderRegistry } from "../utils/registry.d.cts";
2
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.cts";
3
+ import { Comparable, Comparison, Hashable, ModelArg, ModelBuilderFunction, ModelConstructor, Serializable, Validatable } from "./types.d.cts";
4
+ import { ConditionalAsync } from "../types/index.d.cts";
5
5
  import { Constructor } from "@decaf-ts/decoration";
6
6
  /**
7
7
  * @summary Abstract class representing a Validatable Model object
@@ -1,7 +1,7 @@
1
- import { BuilderRegistry } from "../utils/registry.js";
2
- import { ModelErrorDefinition } from "./ModelErrorDefinition.js";
3
- import { Comparable, Comparison, Hashable, ModelArg, ModelBuilderFunction, ModelConstructor, Serializable, Validatable } from "./types.js";
4
- import { ConditionalAsync } from "../types/index.js";
1
+ import { BuilderRegistry } from "../utils/registry.d.mts";
2
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.mts";
3
+ import { Comparable, Comparison, Hashable, ModelArg, ModelBuilderFunction, ModelConstructor, Serializable, Validatable } from "./types.d.mts";
4
+ import { ConditionalAsync } from "../types/index.d.mts";
5
5
  import { Constructor } from "@decaf-ts/decoration";
6
6
  /**
7
7
  * @summary Abstract class representing a Validatable Model object
@@ -1,4 +1,4 @@
1
- import { ModelErrors } from "../validation/types.cjs";
1
+ import { ModelErrors } from "../validation/types.d.cts";
2
2
  /**
3
3
  * @summary Helper Class to hold the error results
4
4
  * @description holds error results in an 'indexable' manner
@@ -1,4 +1,4 @@
1
- import { ModelErrors } from "../validation/types.js";
1
+ import { ModelErrors } from "../validation/types.d.mts";
2
2
  /**
3
3
  * @summary Helper Class to hold the error results
4
4
  * @description holds error results in an 'indexable' manner
@@ -1,7 +1,7 @@
1
1
  import { Constructor } from "@decaf-ts/decoration";
2
- import { ModelBuilderFunction, ModelConstructor } from "./types.cjs";
3
- import { type Model } from "./Model.cjs";
4
- import { BuilderRegistry } from "../utils/registry.cjs";
2
+ import { ModelBuilderFunction, ModelConstructor } from "./types.d.cts";
3
+ import { type Model } from "./Model.d.cts";
4
+ import { BuilderRegistry } from "../utils/registry.d.cts";
5
5
  /**
6
6
  * @description Registry type for storing and retrieving model constructors
7
7
  * @summary The ModelRegistry type defines a registry for model constructors that extends
@@ -1,7 +1,7 @@
1
1
  import { Constructor } from "@decaf-ts/decoration";
2
- import { ModelBuilderFunction, ModelConstructor } from "./types.js";
3
- import { type Model } from "./Model.js";
4
- import { BuilderRegistry } from "../utils/registry.js";
2
+ import { ModelBuilderFunction, ModelConstructor } from "./types.d.mts";
3
+ import { type Model } from "./Model.d.mts";
4
+ import { BuilderRegistry } from "../utils/registry.d.mts";
5
5
  /**
6
6
  * @description Registry type for storing and retrieving model constructors
7
7
  * @summary The ModelRegistry type defines a registry for model constructors that extends
@@ -1,4 +1,4 @@
1
- import { Model } from "./Model.cjs";
1
+ import { Model } from "./Model.d.cts";
2
2
  /**
3
3
  * @description Helper function to create an instance by invoking a constructor with dynamic arguments.
4
4
  * @summary Overrides standard construction patterns by wrapping the given constructor to allow spread argument invocation while preserving the prototype chain.
@@ -1,4 +1,4 @@
1
- import { Model } from "./Model.js";
1
+ import { Model } from "./Model.d.mts";
2
2
  /**
3
3
  * @description Helper function to create an instance by invoking a constructor with dynamic arguments.
4
4
  * @summary Overrides standard construction patterns by wrapping the given constructor to allow spread argument invocation while preserving the prototype chain.
@@ -1,10 +1,10 @@
1
- export * from "./constants.cjs";
2
- export * from "./construction.cjs";
3
- export * from "./decorators.cjs";
4
- export * from "./ModelRegistry.cjs";
5
- export * from "./Model.cjs";
6
- export * from "./ModelErrorDefinition.cjs";
7
- export * from "./Builder.cjs";
8
- export * from "./types.cjs";
9
- export * from "./validation.cjs";
10
- export * from "./utils.cjs";
1
+ export * from "./constants.d.cts";
2
+ export * from "./construction.d.cts";
3
+ export * from "./decorators.d.cts";
4
+ export * from "./ModelRegistry.d.cts";
5
+ export * from "./Model.d.cts";
6
+ export * from "./ModelErrorDefinition.d.cts";
7
+ export * from "./Builder.d.cts";
8
+ export * from "./types.d.cts";
9
+ export * from "./validation.d.cts";
10
+ export * from "./utils.d.cts";
@@ -1,10 +1,10 @@
1
- export * from "./constants.js";
2
- export * from "./construction.js";
3
- export * from "./decorators.js";
4
- export * from "./ModelRegistry.js";
5
- export * from "./Model.js";
6
- export * from "./ModelErrorDefinition.js";
7
- export * from "./Builder.js";
8
- export * from "./types.js";
9
- export * from "./validation.js";
10
- export * from "./utils.js";
1
+ export * from "./constants.d.mts";
2
+ export * from "./construction.d.mts";
3
+ export * from "./decorators.d.mts";
4
+ export * from "./ModelRegistry.d.mts";
5
+ export * from "./Model.d.mts";
6
+ export * from "./ModelErrorDefinition.d.mts";
7
+ export * from "./Builder.d.mts";
8
+ export * from "./types.d.mts";
9
+ export * from "./validation.d.mts";
10
+ export * from "./utils.d.mts";
@@ -1,6 +1,6 @@
1
- import type { ConditionalAsync } from "../types/index.cjs";
2
- import { ModelErrorDefinition } from "./ModelErrorDefinition.cjs";
3
- import { Model } from "./Model.cjs";
1
+ import type { ConditionalAsync } from "../types/index.d.cts";
2
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.cts";
3
+ import { Model } from "./Model.d.cts";
4
4
  /**
5
5
  * @description Function type for building model instances from objects
6
6
  * @summary Type definition for a model builder function that populates model properties
@@ -1,6 +1,6 @@
1
- import type { ConditionalAsync } from "../types/index.js";
2
- import { ModelErrorDefinition } from "./ModelErrorDefinition.js";
3
- import { Model } from "./Model.js";
1
+ import type { ConditionalAsync } from "../types/index.d.mts";
2
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.mts";
3
+ import { Model } from "./Model.d.mts";
4
4
  /**
5
5
  * @description Function type for building model instances from objects
6
6
  * @summary Type definition for a model builder function that populates model properties
@@ -1,4 +1,4 @@
1
- import { ConditionalAsync } from "../types/index.cjs";
1
+ import { ConditionalAsync } from "../types/index.d.cts";
2
2
  /**
3
3
  * Wraps a value in a Promise if the `async` flag is true.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ConditionalAsync } from "../types/index.js";
1
+ import { ConditionalAsync } from "../types/index.d.mts";
2
2
  /**
3
3
  * Wraps a value in a Promise if the `async` flag is true.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { ModelErrorDefinition } from "./ModelErrorDefinition.cjs";
2
- import type { Model } from "./Model.cjs";
3
- import { ConditionalAsync } from "../types/index.cjs";
1
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.cts";
2
+ import type { Model } from "./Model.d.cts";
3
+ import { ConditionalAsync } from "../types/index.d.cts";
4
4
  export declare function validateChildValue<M extends Model>(prop: string, childValue: any, parentModel: M, allowedTypes: string[], async: boolean, ...propsToIgnore: string[]): string | undefined | ModelErrorDefinition | Promise<string | undefined | ModelErrorDefinition>;
5
5
  /**
6
6
  * @description Retrieves nested properties to ignore for child validation
@@ -1,6 +1,6 @@
1
- import { ModelErrorDefinition } from "./ModelErrorDefinition.js";
2
- import type { Model } from "./Model.js";
3
- import { ConditionalAsync } from "../types/index.js";
1
+ import { ModelErrorDefinition } from "./ModelErrorDefinition.d.mts";
2
+ import type { Model } from "./Model.d.mts";
3
+ import { ConditionalAsync } from "../types/index.d.mts";
4
4
  export declare function validateChildValue<M extends Model>(prop: string, childValue: any, parentModel: M, allowedTypes: string[], async: boolean, ...propsToIgnore: string[]): string | undefined | ModelErrorDefinition | Promise<string | undefined | ModelErrorDefinition>;
5
5
  /**
6
6
  * @description Retrieves nested properties to ignore for child validation
@@ -1,8 +1,8 @@
1
- import { Model } from "../model/Model.cjs";
1
+ import { Model } from "../model/Model.d.cts";
2
2
  import "@decaf-ts/decoration";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
- import { designTypeReturn, ExtendedMetadata } from "./types.cjs";
5
- import { ValidationMetadata } from "../validation/types.cjs";
4
+ import { designTypeReturn, ExtendedMetadata } from "./types.d.cts";
5
+ import { ValidationMetadata } from "../validation/types.d.cts";
6
6
  declare module "@decaf-ts/decoration" {
7
7
  namespace Metadata {
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { Model } from "../model/Model.js";
1
+ import { Model } from "../model/Model.d.mts";
2
2
  import "@decaf-ts/decoration";
3
3
  import { Constructor } from "@decaf-ts/decoration";
4
- import { designTypeReturn, ExtendedMetadata } from "./types.js";
5
- import { ValidationMetadata } from "../validation/types.js";
4
+ import { designTypeReturn, ExtendedMetadata } from "./types.d.mts";
5
+ import { ValidationMetadata } from "../validation/types.d.mts";
6
6
  declare module "@decaf-ts/decoration" {
7
7
  namespace Metadata {
8
8
  /**
@@ -1,4 +1,4 @@
1
1
  import "./overrides";
2
- export * from "./Metadata.cjs";
3
- export * from "./overrides.cjs";
4
- export * from "./types.cjs";
2
+ export * from "./Metadata.d.cts";
3
+ export * from "./overrides.d.cts";
4
+ export * from "./types.d.cts";
@@ -1,4 +1,4 @@
1
1
  import "./overrides";
2
- export * from "./Metadata.js";
3
- export * from "./overrides.js";
4
- export * from "./types.js";
2
+ export * from "./Metadata.d.mts";
3
+ export * from "./overrides.d.mts";
4
+ export * from "./types.d.mts";
@@ -1,5 +1,5 @@
1
1
  import { BasicMetadata } from "@decaf-ts/decoration";
2
- import { ValidatorOptions } from "../validation/types.cjs";
2
+ import { ValidatorOptions } from "../validation/types.d.cts";
3
3
  export type ExtendedMetadata<M> = BasicMetadata<M> & {
4
4
  validation: Record<keyof M, ValidatorOptions>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { BasicMetadata } from "@decaf-ts/decoration";
2
- import { ValidatorOptions } from "../validation/types.js";
2
+ import { ValidatorOptions } from "../validation/types.d.mts";
3
3
  export type ExtendedMetadata<M> = BasicMetadata<M> & {
4
4
  validation: Record<keyof M, ValidatorOptions>;
5
5
  };
@@ -1 +1 @@
1
- export * from "./validation.cjs";
1
+ export * from "./validation.d.cts";
@@ -1 +1 @@
1
- export * from "./validation.js";
1
+ export * from "./validation.d.mts";
@@ -1,5 +1,5 @@
1
- import { Model } from "../model/Model.cjs";
2
- import { ModelErrorDefinition } from "../model/ModelErrorDefinition.cjs";
1
+ import { Model } from "../model/Model.d.cts";
2
+ import { ModelErrorDefinition } from "../model/ModelErrorDefinition.d.cts";
3
3
  /**
4
4
  * @description Conditionally wraps a type in a `Promise` based on the `Async` flag.
5
5
  * @summary Utility type that resolves to `T` if `Async` is `false`, or to `Promise<T>` if `Async` is `true`.
@@ -1,5 +1,5 @@
1
- import { Model } from "../model/Model.js";
2
- import { ModelErrorDefinition } from "../model/ModelErrorDefinition.js";
1
+ import { Model } from "../model/Model.d.mts";
2
+ import { ModelErrorDefinition } from "../model/ModelErrorDefinition.d.mts";
3
3
  /**
4
4
  * @description Conditionally wraps a type in a `Promise` based on the `Async` flag.
5
5
  * @summary Utility type that resolves to `T` if `Async` is `false`, or to `Promise<T>` if `Async` is `true`.
@@ -1,11 +1,11 @@
1
- export * from "./constants.cjs";
2
- export * from "./DateBuilder.cjs";
3
- export * from "./dates.cjs";
4
- export * from "./equality.cjs";
5
- export * from "./hashing.cjs";
6
- export * from "./PathProxy.cjs";
7
- export * from "./registry.cjs";
8
- export * from "./serializers.cjs";
9
- export * from "./serialization.cjs";
10
- export * from "./strings.cjs";
11
- export * from "./types.cjs";
1
+ export * from "./constants.d.cts";
2
+ export * from "./DateBuilder.d.cts";
3
+ export * from "./dates.d.cts";
4
+ export * from "./equality.d.cts";
5
+ export * from "./hashing.d.cts";
6
+ export * from "./PathProxy.d.cts";
7
+ export * from "./registry.d.cts";
8
+ export * from "./serializers.d.cts";
9
+ export * from "./serialization.d.cts";
10
+ export * from "./strings.d.cts";
11
+ export * from "./types.d.cts";
@@ -1,11 +1,11 @@
1
- export * from "./constants.js";
2
- export * from "./DateBuilder.js";
3
- export * from "./dates.js";
4
- export * from "./equality.js";
5
- export * from "./hashing.js";
6
- export * from "./PathProxy.js";
7
- export * from "./registry.js";
8
- export * from "./serializers.js";
9
- export * from "./serialization.js";
10
- export * from "./strings.js";
11
- export * from "./types.js";
1
+ export * from "./constants.d.mts";
2
+ export * from "./DateBuilder.d.mts";
3
+ export * from "./dates.d.mts";
4
+ export * from "./equality.d.mts";
5
+ export * from "./hashing.d.mts";
6
+ export * from "./PathProxy.d.mts";
7
+ export * from "./registry.d.mts";
8
+ export * from "./serializers.d.mts";
9
+ export * from "./serialization.d.mts";
10
+ export * from "./strings.d.mts";
11
+ export * from "./types.d.mts";
@@ -1,5 +1,5 @@
1
1
  import { Constructor } from "@decaf-ts/decoration";
2
- import { Serializer } from "./types.cjs";
2
+ import { Serializer } from "./types.d.cts";
3
3
  export declare class Serialization {
4
4
  private static current;
5
5
  private static cache;
@@ -1,5 +1,5 @@
1
1
  import { Constructor } from "@decaf-ts/decoration";
2
- import { Serializer } from "./types.js";
2
+ import { Serializer } from "./types.d.mts";
3
3
  export declare class Serialization {
4
4
  private static current;
5
5
  private static cache;
@@ -1,5 +1,5 @@
1
- import { Serializer } from "./types.cjs";
2
- import { Model } from "../model/Model.cjs";
1
+ import { Serializer } from "./types.d.cts";
2
+ import { Model } from "../model/Model.d.cts";
3
3
  /**
4
4
  * @summary Concrete implementation of a {@link Serializer} in JSON format
5
5
  * @description JS's native JSON.stringify (used here) is not deterministic
@@ -1,5 +1,5 @@
1
- import { Serializer } from "./types.js";
2
- import { Model } from "../model/Model.js";
1
+ import { Serializer } from "./types.d.mts";
2
+ import { Model } from "../model/Model.d.mts";
3
3
  /**
4
4
  * @summary Concrete implementation of a {@link Serializer} in JSON format
5
5
  * @description JS's native JSON.stringify (used here) is not deterministic
@@ -1,4 +1,4 @@
1
- import { Model } from "../model/index.cjs";
1
+ import { Model } from "../model/index.d.cts";
2
2
  /**
3
3
  * @description Interface for serializing and deserializing model objects
4
4
  * @summary Defines the contract for classes that can convert model objects to and from string representations.
@@ -1,4 +1,4 @@
1
- import { Model } from "../model/index.js";
1
+ import { Model } from "../model/index.d.mts";
2
2
  /**
3
3
  * @description Interface for serializing and deserializing model objects
4
4
  * @summary Defines the contract for classes that can convert model objects to and from string representations.
@@ -1,5 +1,5 @@
1
- import { Validator } from "./Validators/Validator.cjs";
2
- import { IValidatorRegistry, ValidatorDefinition } from "./types.cjs";
1
+ import { Validator } from "./Validators/Validator.d.cts";
2
+ import { IValidatorRegistry, ValidatorDefinition } from "./types.d.cts";
3
3
  /**
4
4
  * @summary Static class acting as a namespace for the Validation
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Validator } from "./Validators/Validator.js";
2
- import { IValidatorRegistry, ValidatorDefinition } from "./types.js";
1
+ import { Validator } from "./Validators/Validator.d.mts";
2
+ import { IValidatorRegistry, ValidatorDefinition } from "./types.d.mts";
3
3
  /**
4
4
  * @summary Static class acting as a namespace for the Validation
5
5
  *
@@ -1,6 +1,6 @@
1
- import type { ValidatorOptions } from "../types.cjs";
2
- import type { PathProxy } from "../../utils/index.cjs";
3
- import { BaseValidator } from "./BaseValidator.cjs";
1
+ import type { ValidatorOptions } from "../types.d.cts";
2
+ import type { PathProxy } from "../../utils/index.d.cts";
3
+ import { BaseValidator } from "./BaseValidator.d.cts";
4
4
  /**
5
5
  * @description
6
6
  * Abstract class for defining asynchronous validators.
@@ -1,6 +1,6 @@
1
- import type { ValidatorOptions } from "../types.js";
2
- import type { PathProxy } from "../../utils/index.js";
3
- import { BaseValidator } from "./BaseValidator.js";
1
+ import type { ValidatorOptions } from "../types.d.mts";
2
+ import type { PathProxy } from "../../utils/index.d.mts";
3
+ import { BaseValidator } from "./BaseValidator.d.mts";
4
4
  /**
5
5
  * @description
6
6
  * Abstract class for defining asynchronous validators.
@@ -1,6 +1,6 @@
1
- import { ValidatorOptions } from "../types.cjs";
2
- import type { PathProxy } from "../../utils/index.cjs";
3
- import type { ConditionalAsync } from "../../types/index.cjs";
1
+ import { ValidatorOptions } from "../types.d.cts";
2
+ import type { PathProxy } from "../../utils/index.d.cts";
3
+ import type { ConditionalAsync } from "../../types/index.d.cts";
4
4
  /**
5
5
  * @description Abstract base class for all validators in the validation framework.
6
6
  * @summary The BaseValidator class provides the foundation for all synchronous and asynchronous validator implementations.
@@ -1,6 +1,6 @@
1
- import { ValidatorOptions } from "../types.js";
2
- import type { PathProxy } from "../../utils/index.js";
3
- import type { ConditionalAsync } from "../../types/index.js";
1
+ import { ValidatorOptions } from "../types.d.mts";
2
+ import type { PathProxy } from "../../utils/index.d.mts";
3
+ import type { ConditionalAsync } from "../../types/index.d.mts";
4
4
  /**
5
5
  * @description Abstract base class for all validators in the validation framework.
6
6
  * @summary The BaseValidator class provides the foundation for all synchronous and asynchronous validator implementations.
@@ -1,5 +1,5 @@
1
- import { Validator } from "./Validator.cjs";
2
- import { DateValidatorOptions } from "../types.cjs";
1
+ import { Validator } from "./Validator.d.cts";
2
+ import { DateValidatorOptions } from "../types.d.cts";
3
3
  /**
4
4
  * @description Validator for checking if a value is a valid date
5
5
  * @summary The DateValidator checks if a value is a valid date object or a string that can be converted to a valid date.
@@ -1,5 +1,5 @@
1
- import { Validator } from "./Validator.js";
2
- import { DateValidatorOptions } from "../types.js";
1
+ import { Validator } from "./Validator.d.mts";
2
+ import { DateValidatorOptions } from "../types.d.mts";
3
3
  /**
4
4
  * @description Validator for checking if a value is a valid date
5
5
  * @summary The DateValidator checks if a value is a valid date object or a string that can be converted to a valid date.
@@ -1,6 +1,6 @@
1
- import { Validator } from "./Validator.cjs";
2
- import { DiffValidatorOptions } from "../types.cjs";
3
- import type { PathProxy } from "../../utils/index.cjs";
1
+ import { Validator } from "./Validator.d.cts";
2
+ import { DiffValidatorOptions } from "../types.d.cts";
3
+ import type { PathProxy } from "../../utils/index.d.cts";
4
4
  /**
5
5
  * @summary Diff Validator
6
6
  *
@@ -1,6 +1,6 @@
1
- import { Validator } from "./Validator.js";
2
- import { DiffValidatorOptions } from "../types.js";
3
- import type { PathProxy } from "../../utils/index.js";
1
+ import { Validator } from "./Validator.d.mts";
2
+ import { DiffValidatorOptions } from "../types.d.mts";
3
+ import type { PathProxy } from "../../utils/index.d.mts";
4
4
  /**
5
5
  * @summary Diff Validator
6
6
  *
@@ -1,5 +1,5 @@
1
- import { PatternValidator } from "./PatternValidator.cjs";
2
- import { PatternValidatorOptions } from "../types.cjs";
1
+ import { PatternValidator } from "./PatternValidator.d.cts";
2
+ import { PatternValidatorOptions } from "../types.d.cts";
3
3
  /**
4
4
  * @description Validator for checking if a string is a valid email address
5
5
  * @summary The EmailValidator checks if a string matches a standard email address pattern.
@@ -1,5 +1,5 @@
1
- import { PatternValidator } from "./PatternValidator.js";
2
- import { PatternValidatorOptions } from "../types.js";
1
+ import { PatternValidator } from "./PatternValidator.d.mts";
2
+ import { PatternValidatorOptions } from "../types.d.mts";
3
3
  /**
4
4
  * @description Validator for checking if a string is a valid email address
5
5
  * @summary The EmailValidator checks if a string matches a standard email address pattern.