UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

7 lines (6 loc) 553 B
import { Type } from '@nestjs/common'; import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces'; import { BaseEntity } from '../../models'; import { CreateOneControllerConstructor } from './create-one-controller.interface'; declare function CreateOneControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): CreateOneControllerConstructor<Entity>; export { CreateOneControllerMixin };