UNPKG

@elsikora/nestjs-crud-automator

Version:

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

17 lines (14 loc) 551 B
'use strict'; /** * 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); } exports.DeferPropertyDecoratorExecution = DeferPropertyDecoratorExecution; //# sourceMappingURL=defer-property-decorator-execution.utility.js.map