UNPKG

@versatiledatakit/shared

Version:

Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.

22 lines (21 loc) 530 B
import { Comparable } from '../../interfaces'; import { SimplePredicate } from './base-simple.predicate'; /** * ** Equal Predicate that accepts Comparable and make equality evaluation. * * */ export declare class Equal<T extends Comparable = Comparable> extends SimplePredicate<T> { /** * ** Constructor. */ constructor(comparable: T); /** * ** Factory method. */ static of(comparable: Comparable): Equal; /** * @inheritDoc */ evaluate(comparable: Comparable): boolean; }