UNPKG

@future-widget-lab/record-set

Version:

A dedicated data structure for in-memory record collections, offering fluent, immutable APIs for MongoDB-like querying, sorting, and transformation.

14 lines (13 loc) 385 B
import type { Query } from 'sift'; type FindOptions<TRecord> = { query?: Query<TRecord>; records: Array<TRecord>; }; /** * @description * Use this helper to find all the matching records given a query. * * Falls back to the same set of records if no `query` is provided. */ export declare const find: <TRecord>(options: FindOptions<TRecord>) => Array<TRecord>; export {};