UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

8 lines (7 loc) 516 B
import { BaseEntity } from '../../models'; import { DuplicateManyService } from './duplicate-many-service.interface'; interface DuplicateManyController<Entity extends BaseEntity, Body = any, Response = any> { duplicateMany(ids: string[], body?: Body): Promise<(Entity | Response)[]>; } type DuplicateManyControllerConstructor<Entity extends BaseEntity> = new (service: DuplicateManyService<Entity>) => DuplicateManyController<Entity>; export type { DuplicateManyController, DuplicateManyControllerConstructor };