import { DynamicModule , Module } from '@nestjs/common' ; import { InMemoryDBV1Config } from './interfaces' ; import { InMemoryDBV1Service } from './services' ; import { createInMemoryDBV1ForRootProviders , createInMemoryDBV1ForFeatureProviders , } from './providers' ; deprecated @ Module ( { providers : [ InMemoryDBV1Service ] , exports : [ InMemoryDBV1Service ] , } ) export class InMemoryDBV1Module { public static forRoot ( config = { } ) { const providers = createInMemoryDBV1ForRootProviders ( config ) ; return { module : InMemoryDBV1Module , providers , exports : providers , } ; } public static forFeature ( featureName , config = { } ) { const providers = createInMemoryDBV1ForFeatureProviders ( featureName , config ) ; return { module : InMemoryDBV1Module , providers , exports : providers , } ; } }