UNPKG

499 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const CONTAINS = "contains";
3/**
4 * Checks if the string contains the seed.
5 * If given value is not a string, then it returns false.
6 */
7export declare function contains(value: unknown, seed: string): boolean;
8/**
9 * Checks if the string contains the seed.
10 * If given value is not a string, then it returns false.
11 */
12export declare function Contains(seed: string, validationOptions?: ValidationOptions): PropertyDecorator;