UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 528 B
import { ValidationOptions } from '../ValidationOptions'; export declare const NOT_CONTAINS = "notContains"; /** * Checks if the string does not contain the seed. * If given value is not a string, then it returns false. */ export declare function notContains(value: unknown, seed: string): boolean; /** * Checks if the string does not contain the seed. * If given value is not a string, then it returns false. */ export declare function NotContains(seed: string, validationOptions?: ValidationOptions): PropertyDecorator;