UNPKG

@versatiledatakit/shared

Version:

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

20 lines (19 loc) 488 B
import { Comparable, Predicate } from '../../interfaces'; export declare abstract class SimplePredicate<T extends Comparable = Comparable> implements Predicate<T> { /** * @inheritDoc */ readonly comparable: T; /** * ** Constructor. */ protected constructor(comparable: T); /** * ** Factory method. */ static of(..._args: unknown[]): SimplePredicate; /** * @inheritDoc */ abstract evaluate(comparable: T): boolean; }