UNPKG

@nestjs-mod/common

Version:

A collection of utilities for unifying NestJS applications and modules

12 lines (11 loc) 733 B
import { ConfigModelPropertyOptions, ConfigModelRootOptions } from './types'; /** * Decorator to mark a class as a configuration model * @param options Optional configuration for the model */ export declare function ConfigModel(options?: ConfigModelRootOptions): <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void; /** * Decorator to define a property within a configuration model * @param options Property configuration options (excluding originalName and propertyKey) */ export declare function ConfigModelProperty(options?: Omit<ConfigModelPropertyOptions, 'propertyKey' | 'originalName'>): (target: any, propertyKey: string) => void;