/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/common/module-utils/interfaces/configurable-module-cls.interface.ts
39 строк
1 KB
Kamil Myśliwiec
chore: update prettier
05 дек 2025, 15:35
Не верифицирован
05 дек 2025, 15:35
0c93692
Код
Авторство
О чём код?
/* eslint-disable @typescript-eslint/no-empty-object-type */ import { DynamicModule } from '../../interfaces'; import { DEFAULT_FACTORY_CLASS_METHOD_KEY, DEFAULT_METHOD_KEY, } from '../constants'; import { ConfigurableModuleAsyncOptions } from './configurable-module-async-options.interface'; /** * Class that represents a blueprint/prototype for a configurable Nest module. * This class provides static methods for constructing dynamic modules. Their names * can be controlled through the "MethodKey" type argument. * * @publicApi */ export type ConfigurableModuleCls< ModuleOptions, MethodKey extends string = typeof DEFAULT_METHOD_KEY, FactoryClassMethodKey extends string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY, ExtraModuleDefinitionOptions = {}, > = { new (): any; } & Record< `${MethodKey}`, ( options: ModuleOptions & Partial<ExtraModuleDefinitionOptions>, ) => DynamicModule > & Record< `${MethodKey}Async`, ( options: ConfigurableModuleAsyncOptions< ModuleOptions, FactoryClassMethodKey > & Partial<ExtraModuleDefinitionOptions>, ) => DynamicModule >;