UNPKG

@mcabreradev/filter

Version:

A powerful, SQL-like array filtering library for TypeScript and JavaScript with advanced pattern matching, MongoDB-style operators, deep object comparison, and zero dependencies

4 lines (3 loc) 237 B
import type { Expression, FilterOptions } from '../../types'; import type { UseFilterResult } from './react.types'; export declare function useFilter<T>(data: T[], expression: Expression<T>, options?: FilterOptions): UseFilterResult<T>;