UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

8 lines (7 loc) 481 B
import { BaseEntity } from '../../models'; import { ReplaceOneService } from './replace-one-service.interface'; interface ReplaceOneController<Entity extends BaseEntity, Body = any, Response = any> { replaceOne(id: string, body: Body): Promise<Entity | Response>; } type ReplaceOneControllerConstructor<Entity extends BaseEntity> = new (service: ReplaceOneService<Entity>) => ReplaceOneController<Entity>; export type { ReplaceOneController, ReplaceOneControllerConstructor };