UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

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