UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 478 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_OCTAL = "isOctal"; /** * Check if the string is a valid octal number. * If given value is not a string, then it returns false. */ export declare function isOctal(value: unknown): boolean; /** * Check if the string is a valid octal number. * If given value is not a string, then it returns false. */ export declare function IsOctal(validationOptions?: ValidationOptions): PropertyDecorator;