UNPKG

@neoskop/nestjs-probes

Version:
29 lines (28 loc) 1.09 kB
import { DynamicModule } from '@nestjs/common'; import { ModuleRef } from '@nestjs/core'; import { ProbesModuleAsyncOptions } from './probes-module-async-options'; import { ProbesModuleOptions } from './probes-module-options.interface'; import { ProbesService } from './probes.service'; export declare class ProbesCoreModule { private readonly options; private readonly moduleRef; constructor(options: ProbesModuleOptions, moduleRef: ModuleRef); private static getServiceProvider; private static getAsyncServiceProvider; private static getAsyncOptionsProvider; static forRoot(options: ProbesModuleOptions): Promise<{ module: typeof ProbesCoreModule; providers: ({ provide: typeof ProbesService; useValue: ProbesService; } | { provide: string; useValue: ProbesModuleOptions; })[]; exports: { provide: typeof ProbesService; useValue: ProbesService; }[]; }>; static forRootAsync(options: ProbesModuleAsyncOptions): Promise<DynamicModule>; }