Skip to main content

Call Signature

IsMACAddress(optionsArg?, validationOptionsArg?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsMacAddress.d.ts:13 Check if the string is a MAC address. If given value is not a string, then it returns false.

Parameters

optionsArg?

IsMACAddressOptions

validationOptionsArg?

ValidationOptions

Returns

PropertyDecorator

Call Signature

IsMACAddress(validationOptionsArg?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsMacAddress.d.ts:14 Check if the string is a MAC address. If given value is not a string, then it returns false.

Parameters

validationOptionsArg?

ValidationOptions

Returns

PropertyDecorator