@wxn0brp/db
Version:
A simple file-based database management system with support for CRUD operations, custom queries, and graph structures.
12 lines (11 loc) • 620 B
TypeScript
import { FindOpts } from "../types/options.js";
/**
* Updates an object with new values from a findOpts object.
* @param obj - The object to update.
* @param findOpts - An object containing options to update the target object.
* @param [findOpts.transform] - A function to transform the object before applying the other options.
* @param [findOpts.select] - An array of fields to select from the target object.
* @param [findOpts.exclude] - An array of fields to exclude from the target object.
* @returns The updated object.
*/
export default function updateFindObject(obj: Object, findOpts: FindOpts): Object;