UNPKG

437 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_DIVISIBLE_BY = "isDivisibleBy";
3/**
4 * Checks if value is a number that's divisible by another.
5 */
6export declare function isDivisibleBy(value: unknown, num: number): boolean;
7/**
8 * Checks if value is a number that's divisible by another.
9 */
10export declare function IsDivisibleBy(num: number, validationOptions?: ValidationOptions): PropertyDecorator;