class-validator
Version:
Decorator-based property validation for classes.
11 lines (10 loc) • 356 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_PORT = "isPort";
/**
* Check if the string is a valid port number.
*/
export declare function isPort(value: unknown): boolean;
/**
* Check if the string is a valid port number.
*/
export declare function IsPort(validationOptions?: ValidationOptions): PropertyDecorator;