@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
13 lines (12 loc) • 1.02 kB
TypeScript
import { IApiBaseEntity } from '../../../../interface/api-base-entity.interface';
import { TApiControllerGeneratedFunction } from '../../../../type/class/api/controller/generated/function.type';
import { TApiControllerGeneratedScopeFunctionType } from '../../../../type/class/api/controller/generated/scope-function-type.type';
/**
* Tracks exact built-in decorated service function identities used by generated mandatory calls.
*/
export declare class ApiControllerGeneratedFunctionCapability {
private static readonly REGISTRY;
static mark(implementation: unknown, functionType: TApiControllerGeneratedScopeFunctionType, entity: new () => IApiBaseEntity): void;
static markOwn(service: object, propertyKey: PropertyKey, functionType: TApiControllerGeneratedScopeFunctionType, entity: new () => IApiBaseEntity): void;
static resolve<T extends TApiControllerGeneratedFunction>(service: object, propertyKey: PropertyKey, functionType: TApiControllerGeneratedScopeFunctionType, entity: unknown): T;
}