UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

9 lines (8 loc) 504 B
import { DeleteResult } from '../../interfaces'; import { BaseEntity } from '../../models'; import { DeleteOneService } from './delete-one-service.interface'; interface DeleteOneController<_Entity extends BaseEntity, Response = any> { deleteOne(id: string): Promise<DeleteResult | Response>; } type DeleteOneControllerConstructor<Entity extends BaseEntity> = new (service: DeleteOneService<Entity>) => DeleteOneController<Entity>; export type { DeleteOneController, DeleteOneControllerConstructor };