πRandom
The module provides a set of functions to generate random values.
Imports
import { RandomService } from 'niro-health';import { RandomModule } from 'niro-health';import type { IRandomService } from 'niro-health';Method of Use
import { Module } from '@nestjs/common';
import {
RandomService,
StringExService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IRandomService',
useClass: RandomService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Methods
Method
Scope
Description
Last updated