class-validator
Version:
Decorator-based property validation for classes.
13 lines (12 loc) • 499 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const CONTAINS = "contains";
/**
* Checks if the string contains the seed.
* If given value is not a string, then it returns false.
*/
export declare function contains(value: unknown, seed: string): boolean;
/**
* Checks if the string contains the seed.
* If given value is not a string, then it returns false.
*/
export declare function Contains(seed: string, validationOptions?: ValidationOptions): PropertyDecorator;