UNPKG

@elsikora/nestjs-crud-automator

Version:

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

15 lines (13 loc) 505 B
/** * Defers decorator execution to the next microtask (or macrotask) to allow entity factories to resolve. * @param {() => void} handler - Callback executed after the current call stack completes. */ function DeferPropertyDecoratorExecution(handler) { if (typeof queueMicrotask === "function") { queueMicrotask(handler); return; } setTimeout(handler, 0); } export { DeferPropertyDecoratorExecution }; //# sourceMappingURL=defer-property-decorator-execution.utility.js.map