UNPKG

@versatiledatakit/shared

Version:

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

57 lines (56 loc) 1.24 kB
import { Comparable, Predicate } from '../../interfaces'; export declare class PredicatesComparable<T extends Predicate[] = Predicate[]> implements Comparable<T> { /** * @inheritDoc */ readonly value: T; /** * ** Constructor. */ constructor(...predicates: T); /** * ** Factory method. */ static of(...predicates: Predicate[]): PredicatesComparable; /** * @inheritDoc */ compare(_comparable: Comparable): number; /** * @inheritDoc */ isNil(): boolean; /** * @inheritDoc */ notNil(): boolean; /** * @inheritDoc */ like(comparable: Comparable): boolean; /** * @inheritDoc */ equal(comparable: Comparable): boolean; /** * @inheritDoc */ notEqual(comparable: Comparable): boolean; /** * @inheritDoc */ lessThan(_comparable: Comparable): boolean; /** * @inheritDoc */ lessThanInclusive(_comparable: Comparable): boolean; /** * @inheritDoc */ greaterThan(_comparable: Comparable): boolean; /** * @inheritDoc */ greaterThanInclusive(_comparable: Comparable): boolean; private static _defaultUnsupported; }