UNPKG

494 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_EAN = "isEAN";
3/**
4 * Check if the string is an EAN (European Article Number).
5 * If given value is not a string, then it returns false.
6 */
7export declare function isEAN(value: unknown): boolean;
8/**
9 * Check if the string is an EAN (European Article Number).
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsEAN(validationOptions?: ValidationOptions): PropertyDecorator;