@decaf-ts/decorator-validation 1.7.15 → 1.7.16

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.
@@ -224,7 +224,7 @@ export declare function set(clazz: ModelConstructor<any>, message?: string): (ta
224
224
  * @function eq
225
225
  * @category Property Decorators
226
226
  */
227
- export declare function eq(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
227
+ export declare function eq(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
228
228
  /**
229
229
  * @summary Declares that the decorated property must be different from another specified property.
230
230
  * @description Applies the {@link ValidationKeys.DIFF} validator to ensure the decorated value is different from the value of the given property.
@@ -239,7 +239,7 @@ export declare function eq(propertyToCompare: string, options: Omit<ComparisonVa
239
239
  * @function diff
240
240
  * @category Property Decorators
241
241
  */
242
- export declare function diff(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
242
+ export declare function diff(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
243
243
  /**
244
244
  * @summary Declares that the decorated property must be less than another specified property.
245
245
  * @description Applies the {@link ValidationKeys.LESS_THAN} validator to ensure the decorated value is less than the value of the given property.
@@ -254,7 +254,7 @@ export declare function diff(propertyToCompare: string, options: Omit<Comparison
254
254
  * @function lt
255
255
  * @category Property Decorators
256
256
  */
257
- export declare function lt(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
257
+ export declare function lt(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
258
258
  /**
259
259
  * @summary Declares that the decorated property must be equal or less than another specified property.
260
260
  * @description Applies the {@link ValidationKeys.LESS_THAN_OR_EQUAL} validator to ensure the decorated value is equal or less than the value of the given property.
@@ -269,7 +269,7 @@ export declare function lt(propertyToCompare: string, options: Omit<ComparisonVa
269
269
  * @function lte
270
270
  * @category Property Decorators
271
271
  */
272
- export declare function lte(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
272
+ export declare function lte(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
273
273
  /**
274
274
  * @summary Declares that the decorated property must be greater than another specified property.
275
275
  * @description Applies the {@link ValidationKeys.GREATER_THAN} validator to ensure the decorated value is greater than the value of the given property.
@@ -284,7 +284,7 @@ export declare function lte(propertyToCompare: string, options: Omit<ComparisonV
284
284
  * @function gt
285
285
  * @category Property Decorators
286
286
  */
287
- export declare function gt(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
287
+ export declare function gt(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
288
288
  /**
289
289
  * @summary Declares that the decorated property must be equal or greater than another specified property.
290
290
  * @description Applies the {@link ValidationKeys.GREATER_THAN_OR_EQUAL} validator to ensure the decorated value is equal or greater than the value of the given property.
@@ -299,4 +299,4 @@ export declare function gt(propertyToCompare: string, options: Omit<ComparisonVa
299
299
  * @function gte
300
300
  * @category Property Decorators
301
301
  */
302
- export declare function gte(propertyToCompare: string, options: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
302
+ export declare function gte(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/decorator-validation",
3
- "version": "1.7.15",
3
+ "version": "1.7.16",
4
4
  "description": "simple decorator based validation engine",
5
5
  "type": "module",
6
6
  "exports": {