class-validator
Version:
Decorator-based property validation for classes.
13 lines (12 loc) • 467 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_BASE32 = "isBase32";
/**
* Checks if a string is base32 encoded.
* If given value is not a string, then it returns false.
*/
export declare function isBase32(value: unknown): boolean;
/**
* Check if a string is base32 encoded.
* If given value is not a string, then it returns false.
*/
export declare function IsBase32(validationOptions?: ValidationOptions): PropertyDecorator;