UNPKG

635 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_PASSPORT_NUMBER = "isPassportNumber";
3/**
4 * Check if the string is a valid passport number relative to a specific country code.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isPassportNumber(value: unknown, countryCode: string): boolean;
8/**
9 * Check if the string is a valid passport number relative to a specific country code.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsPassportNumber(countryCode: string, validationOptions?: ValidationOptions): PropertyDecorator;