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.

15 lines (14 loc) 490 B
import type { Query } from 'sift'; type UpdateOptions<TRecord> = { records: Array<TRecord>; changes: Partial<TRecord>; query: Query<TRecord>; }; /** * @description * Update this helper to update record in the record set matching the sift query by merging the provided update object. * * Performs a shallow merge of the update object into the first matching record. */ export declare const updateOne: <TRecord>(options: UpdateOptions<TRecord>) => Array<TRecord>; export {};