mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 314 B
TypeScript
import { Any, AnyObject, Options } from "../../../types";
/**
* Converts a value to an integer. If the value cannot be converted to an integer, $toInt errors.
* If the value is null or missing, $toInt returns null.
*/
export declare const $toInt: (obj: AnyObject, expr: Any, options: Options) => number | null;