Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_class_validator/src/decorator/string/IsIdentityCard.ts

Decorator-based property validation for classes.
Latest
import * as denoClassValidator from "https://deno.land/x/deno_class_validator@v1.0.0/src/decorator/string/IsIdentityCard.ts";

Functions

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.

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.