UNPKG

493 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_MAGNET_URI = "isMagnetURI";
3/**
4 * Check if the string is a magnet uri format.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isMagnetURI(value: unknown): boolean;
8/**
9 * Check if the string is a magnet uri format.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsMagnetURI(validationOptions?: ValidationOptions): PropertyDecorator;