Skip to main content
IsTaxId(locale?, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/is-tax-id.d.ts:20 Checks if the string is a valid tax ID. Default locale is en-US. If given value is not a string, then it returns false. Supported locales: bg-BG, cs-CZ, de-AT, de-DE, dk-DK, el-CY, el-GR, en-CA, en-IE, en-US, es-ES, et-EE, fi-FI, fr-BE, fr-FR, fr-LU, hr-HR, hu-HU, it-IT, lv-LV, mt-MT, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, sk-SK, sl-SI, sv-SE.

Parameters

locale?

string

validationOptions?

ValidationOptions

Returns

PropertyDecorator