UNPKG

@versatiledatakit/shared

Version:

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

12 lines (11 loc) 296 B
/** * ** Interface for filtering data according some criteria. */ export interface Criteria<T = unknown> { /** * ** Creates new filtered Array of elements that meets the criteria. * * - Does not modify the original Array. */ meetCriteria(elements: T[]): T[]; }