UNPKG

express-oven

Version:

An easy mock API generator with express.js

6 lines (5 loc) 542 B
import { Request } from 'express'; import { Optional } from '../typing-utils/typings'; export declare const matchEntitiesByParams: (params: Record<string, string>, paramMatch: Optional<Record<string, string>>) => (entity: any) => boolean; export declare const matchEntitiesByBodyFilters: (body: Request['body'], bodyMatch: Optional<Record<string, string>>) => (entity: any) => boolean; export declare const matchEntitiesByQueryFilters: (query: Request['query'], queryMatch: Optional<Record<string, string>>) => (entity: any) => boolean;