UNPKG

531 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_SEM_VER = "isSemVer";
3/**
4 * Check if the string is a Semantic Versioning Specification (SemVer).
5 * If given value is not a string, then it returns false.
6 */
7export declare function isSemVer(value: unknown): boolean;
8/**
9 * Check if the string is a Semantic Versioning Specification (SemVer).
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsSemVer(validationOptions?: ValidationOptions): PropertyDecorator;