class-validator
Version:
Decorator-based property validation for classes.
13 lines (12 loc) • 531 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_SEM_VER = "isSemVer";
/**
* Check if the string is a Semantic Versioning Specification (SemVer).
* If given value is not a string, then it returns false.
*/
export declare function isSemVer(value: unknown): boolean;
/**
* Check if the string is a Semantic Versioning Specification (SemVer).
* If given value is not a string, then it returns false.
*/
export declare function IsSemVer(validationOptions?: ValidationOptions): PropertyDecorator;