πConfiguration
The module provides a service for configuring the application.
Imports
import { ConfigurationService } from 'niro-health';import { ConfigurationModule } from 'niro-health';import type { IConfigurationService } from 'niro-health';Method of Use
import { Module } from '@nestjs/common';
import {
ConfigurationService,
StringExService,
ValidatorRegexpService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated