UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 494 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_EAN = "isEAN"; /** * Check if the string is an EAN (European Article Number). * If given value is not a string, then it returns false. */ export declare function isEAN(value: unknown): boolean; /** * Check if the string is an EAN (European Article Number). * If given value is not a string, then it returns false. */ export declare function IsEAN(validationOptions?: ValidationOptions): PropertyDecorator;