UNPKG

stagify

Version:

mongoose aggregate pipeline parser

12 lines (11 loc) 372 B
import { IObject } from '../types'; export declare const lean: (data: any) => any; export declare const isValidObject: (obj: IObject) => boolean; interface ISelect { [key: string]: string | number; } export declare const projectize: (select: ISelect) => { $project: ISelect; } | null; export declare const isValidId: (id: string) => boolean; export {};