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.

11 lines (10 loc) 402 B
type MapOptions<TRecord, TMappedRecord> = { transformer: (record: TRecord) => TMappedRecord; records: Array<TRecord>; }; /** * @description * Use this helper to transform all records in the record set and return a new RecordSet of the transformed records. */ export declare const map: <TRecord, TMappedRecord>(options: MapOptions<TRecord, TMappedRecord>) => Array<TMappedRecord>; export {};