UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

21 lines (20 loc) 1.12 kB
import { 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; /** * Returns all registered child DTO constructors for the provided parent prototype recursively. * @param {object} parentPrototype - Parent DTO prototype. * @returns {Array<Type<unknown>>} Registered child constructors including nested descendants. */ export declare function GetRegisteredAutoDtoChildrenRecursive(parentPrototype: object): Array<Type<unknown>>; /** * 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;