@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
15 lines (14 loc) • 754 B
TypeScript
import type { Type } from "@nestjs/common";
/**
* Returns registered child DTO constructors for the provided parent prototype.
* @param {object} parentPrototype - Parent DTO prototype.
* @returns {Set<Type<unknown>> | undefined} Set of registered child constructors.
*/
export declare function GetRegisteredAutoDtoChildren(parentPrototype: object): Set<Type<unknown>> | undefined;
/**
* Registers DTO constructors as children of the provided parent prototype.
* Used to propagate auto DTO context to nested manual DTOs.
* @param {object} parentPrototype - Parent DTO prototype.
* @param {unknown} child - Child constructor or array of constructors.
*/
export declare function RegisterAutoDtoChild(parentPrototype: object, child: unknown): void;