@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.
- package/dist/decorator-validation.cjs +2 -2
- package/dist/decorator-validation.esm.cjs +2 -2
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/validation/decorators.d.ts +6 -6
- package/lib/esm/validation/decorators.js +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/validation/decorators.cjs +1 -1
- package/lib/validation/decorators.d.ts +6 -6
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
302
|
+
export declare function gte(propertyToCompare: string, options?: Omit<ComparisonValidatorOptions, "async" | "description">): (target: object, propertyKey?: string | symbol | unknown, descriptor?: PropertyDescriptor) => void;
|