UNPKG

fluent-ts-validator

Version:
17 lines (16 loc) 500 B
import { PropertyValidator } from "../PropertyValidator"; /** * Validates if given value is not in a collection of allowed values or in an object/enum. * * @export * @class IsNotInValidator * @implements {PropertyValidator<T>} * @template T */ export declare class IsNotInValidator<T> implements PropertyValidator<T> { private obj; constructor(obj: Iterable<T> | any); isValid(input: T): boolean; private isElementNotInIterable(input); private isValueNotInObject(input); }