mongoose-restapi-ui
Version:
Rest api library for your mongoose apps, with react ui: mongoose-restapi-ui-component react library
12 lines (11 loc) • 491 B
TypeScript
import { ObjectID } from 'bson';
import { Path } from '../src/definitions/model';
export declare function isNumber(val: any): boolean;
export declare function isInteger(val: string): boolean;
export declare function parseNumberFx(el: any): number;
export declare function parseObjectId(el: any): ObjectID;
export declare function containsStringFx(el: any): {
$regex: string;
$options: string;
};
export declare function replaceObjectIds(paths: Path[], object: any): void;