UNPKG

@elsikora/nestjs-crud-automator

Version:

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

16 lines (15 loc) 516 B
import type { IApiBaseEntity } from '../../../api-base-entity.interface'; export interface IApiSubscriberExecutionContext<E extends IApiBaseEntity, Result = unknown, Input = unknown> { /** * An immutable container for metadata (e.g., transaction manager, HTTP headers) */ readonly DATA: Input; /** * The entity instance the operation is being performed on. */ readonly ENTITY: E; /** * The mutable data payload that subscribers can modify. */ result?: Result; }