Skip to main content
IsIdentityCard(locale?, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsIdentityCard.d.ts:17 Check if the string is a valid identity card code. locale is one of [‘ES’, ‘zh-TW’, ‘he-IL’, ‘ar-TN’] OR ‘any’. If ‘any’ is used, function will check if any of the locals match. Defaults to ‘any’. If given value is not a string, then it returns false.

Parameters

locale?

IdentityCardLocale

validationOptions?

ValidationOptions

Returns

PropertyDecorator