generated from AthennaIO/Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
🚀 Feature Proposal
Implement the @Value annotation to be used as a property decorator.
Motivation
This annotation will be responsible to automatically inject some configuration in some property of the class. Also, if the configuration value does not exist, an exception needs to be thrown.
Example
import { Value } from '@athenna/config'
export class AppService {
@Value('app.name')
private name: string
@Value('app.environment')
private environment: string
@Value('logging.channels')
private channels: Record<string, any>
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Type
Projects
Status
Done