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.

13 lines (12 loc) 387 B
import type { Query } from 'sift'; type DistinctOptions<TRecord> = { field: keyof TRecord; query?: Query<TRecord>; records: Array<TRecord>; }; /** * @description * Use this helper to get distinct values of a field among records matching the query. */ export declare const distinct: <TRecord>(options: DistinctOptions<TRecord>) => Array<TRecord[keyof TRecord]>; export {};