class-validator
Version:
Decorator-based property validation for classes.
13 lines (12 loc) • 493 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_MAGNET_URI = "isMagnetURI";
/**
* Check if the string is a magnet uri format.
* If given value is not a string, then it returns false.
*/
export declare function isMagnetURI(value: unknown): boolean;
/**
* Check if the string is a magnet uri format.
* If given value is not a string, then it returns false.
*/
export declare function IsMagnetURI(validationOptions?: ValidationOptions): PropertyDecorator;