import type { AnyKeys, AnyObject } from '../util.d.ts'; // import type { // UpdateExpression // } from 'mingo/updater'; /** * We use an own type here, copied from mongoose * @link https://github.com/Automattic/mongoose/blob/eb292d2c4cc98ee315f118d6199a83938f06d901/types/index.d.ts#L466 * When the mingo library implements a schema-based type for UpdateExpression, we can use these typings instead. */ export type UpdateQuery = { $min?: AnyKeys & AnyObject; $max?: AnyKeys & AnyObject; $inc?: AnyKeys & AnyObject; $set?: AnyKeys & AnyObject; $unset?: AnyKeys & AnyObject; $push?: AnyKeys & AnyObject; $addToSet?: AnyKeys & AnyObject; $pop?: AnyKeys & AnyObject; $pullAll?: AnyKeys & AnyObject; $rename?: Record; };