UNPKG

fluent-ts-validator

Version:
15 lines (14 loc) 381 B
import { PropertyValidator } from "../PropertyValidator"; /** * Validates if a value matches ("===") the comparison. * * @export * @class IsEqualValidator * @implements {PropertyValidator<T>} * @template T */ export declare class IsEqualValidator<T> implements PropertyValidator<T> { private comparison; constructor(comparison: T); isValid(input: T): boolean; }