@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
12 lines (11 loc) • 609 B
TypeScript
/**
* Executes and clears all queued handlers that were waiting for the DTO context on the specified prototype.
* @param {object} target - DTO prototype whose queued handlers should run.
*/
export declare function FlushAutoDtoContextExecutions(target: object): void;
/**
* Queues a handler to run once the DTO context becomes available for the specified prototype.
* @param {object} target - DTO prototype awaiting context.
* @param {() => void} handler - Callback to execute after context is defined.
*/
export declare function QueueAutoDtoContextExecution(target: object, handler: () => void): void;