Skip to main content
IsHash(algorithm, validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsHash.d.ts:15 Check if the string is a hash of type algorithm. Algorithm is one of [‘md4’, ‘md5’, ‘sha1’, ‘sha256’, ‘sha384’, ‘sha512’, ‘ripemd128’, ‘ripemd160’, ‘tiger128’, ‘tiger160’, ‘tiger192’, ‘crc32’, ‘crc32b’]

Parameters

algorithm

string

validationOptions?

ValidationOptions

Returns

PropertyDecorator