Skip to main content
IsPostalCode(locale?, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsPostalCode.d.ts:13 Check if the string is a postal code, in the specified locale. If given value is not a string, then it returns false.

Parameters

locale?

"any" | PostalCodeLocale

validationOptions?

ValidationOptions

Returns

PropertyDecorator