UNPKG

@nestjs-mod/common

Version:

A collection of utilities for unifying NestJS applications and modules

13 lines (12 loc) 774 B
import { EnvModelPropertyOptions, EnvModelRootOptions } from './types'; /** * Decorator to mark a class as an environment model * Sets up default property value extractors and name formatters if not provided * @param options Optional configuration for the environment model */ export declare function EnvModel(options?: EnvModelRootOptions): <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void; /** * Decorator to define a property within an environment model * @param options Property configuration options (excluding originalName) */ export declare function EnvModelProperty(options?: Omit<EnvModelPropertyOptions, 'originalName'>): (target: any, propertyKey: string) => void;