UNPKG

express-easy-curd

Version:

A lightweight helper library for building Express.js routes, controllers, and Redis-enhanced middleware with optional Redis support.

6 lines (5 loc) 441 B
import { Document } from "mongoose"; import { IPagination, TFilter } from "../Types"; export declare const pic: <T extends Record<string, any>>(obj: T, schemaFields: string[]) => Record<string, any>; export declare const paginationHelper: (obj: Record<string, unknown>) => IPagination; export declare const filterHelper: <T extends Record<string, unknown>>(reqQuery: T, partialSearching: string[], schemaName: Document) => Partial<TFilter>;