@furystack/core
Version:
Core FuryStack package
13 lines • 665 B
TypeScript
import type { FilterType } from './models/physical-store.js';
/**
* In-memory evaluation of a {@link FilterType} expression. Used by
* {@link InMemoryStore.find} and any consumer that needs to filter without
* round-tripping a real store. Throws on unknown operators (defensive — the
* type system rejects them at compile time).
*
* Supported field operators: `$eq`, `$ne`, `$in`, `$nin`, `$gt`, `$gte`,
* `$lt`, `$lte`, `$startsWith`, `$endsWith`, `$like` (`%` wildcard, case
* insensitive), `$regex`. Logical: `$and`, `$or`.
*/
export declare function filterItems<T>(values: T[], filter?: FilterType<T>): T[];
//# sourceMappingURL=filter-items.d.ts.map