Initial commit - Event Planner application
This commit is contained in:
42
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.d.ts
generated
vendored
Normal file
42
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import { FactoryProvider, ModuleMetadata, Provider, Type } from '../../interfaces';
|
||||
import { DEFAULT_FACTORY_CLASS_METHOD_KEY } from '../constants';
|
||||
/**
|
||||
* Interface that must be implemented by the module options factory class.
|
||||
* Method key varies depending on the "FactoryClassMethodKey" type argument.
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export type ConfigurableModuleOptionsFactory<ModuleOptions, FactoryClassMethodKey extends string> = Record<`${FactoryClassMethodKey}`, () => Promise<ModuleOptions> | ModuleOptions>;
|
||||
/**
|
||||
* Interface that represents the module async options object
|
||||
* Factory method name varies depending on the "FactoryClassMethodKey" type argument.
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface ConfigurableModuleAsyncOptions<ModuleOptions, FactoryClassMethodKey extends string = typeof DEFAULT_FACTORY_CLASS_METHOD_KEY> extends Pick<ModuleMetadata, 'imports'> {
|
||||
/**
|
||||
* Injection token resolving to an existing provider. The provider must implement
|
||||
* the corresponding interface.
|
||||
*/
|
||||
useExisting?: Type<ConfigurableModuleOptionsFactory<ModuleOptions, FactoryClassMethodKey>>;
|
||||
/**
|
||||
* Injection token resolving to a class that will be instantiated as a provider.
|
||||
* The class must implement the corresponding interface.
|
||||
*/
|
||||
useClass?: Type<ConfigurableModuleOptionsFactory<ModuleOptions, FactoryClassMethodKey>>;
|
||||
/**
|
||||
* Function returning options (or a Promise resolving to options) to configure the
|
||||
* module.
|
||||
*/
|
||||
useFactory?: (...args: any[]) => Promise<ModuleOptions> | ModuleOptions;
|
||||
/**
|
||||
* Dependencies that a Factory may inject.
|
||||
*/
|
||||
inject?: FactoryProvider['inject'];
|
||||
/**
|
||||
* List of parent module's providers that will be filtered to only provide necessary
|
||||
* providers for the 'inject' array
|
||||
* useful to pass options to nested async modules
|
||||
*/
|
||||
provideInjectionTokensFrom?: Provider[];
|
||||
}
|
||||
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
13
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.d.ts
generated
vendored
Normal file
13
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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>;
|
||||
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
62
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.d.ts
generated
vendored
Normal file
62
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
import { ConfigurableModuleAsyncOptions } from './configurable-module-async-options.interface';
|
||||
import { ConfigurableModuleCls } from './configurable-module-cls.interface';
|
||||
/**
|
||||
* Configurable module host. See properties for more details
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface ConfigurableModuleHost<ModuleOptions = Record<string, unknown>, MethodKey extends string = string, FactoryClassMethodKey extends string = string, ExtraModuleDefinitionOptions = {}> {
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* Your module class should inherit from this class to make the static methods available.
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* @Module({})
|
||||
* class IntegrationModule extends ConfigurableModuleCls {
|
||||
* // ...
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
ConfigurableModuleClass: ConfigurableModuleCls<ModuleOptions, MethodKey, FactoryClassMethodKey, ExtraModuleDefinitionOptions>;
|
||||
/**
|
||||
* Module options provider token. Can be used to inject the "options object" to
|
||||
* providers registered within the host module.
|
||||
*/
|
||||
MODULE_OPTIONS_TOKEN: string | symbol;
|
||||
/**
|
||||
* Can be used to auto-infer the compound "async module options" type.
|
||||
* Note: this property is not supposed to be used as a value.
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* @Module({})
|
||||
* class IntegrationModule extends ConfigurableModuleCls {
|
||||
* static module = initializer(IntegrationModule);
|
||||
*
|
||||
* static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule {
|
||||
* return super.registerAsync(options);
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
ASYNC_OPTIONS_TYPE: ConfigurableModuleAsyncOptions<ModuleOptions, FactoryClassMethodKey> & Partial<ExtraModuleDefinitionOptions>;
|
||||
/**
|
||||
* Can be used to auto-infer the compound "module options" type (options interface + extra module definition options).
|
||||
* Note: this property is not supposed to be used as a value.
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* @Module({})
|
||||
* class IntegrationModule extends ConfigurableModuleCls {
|
||||
* static module = initializer(IntegrationModule);
|
||||
*
|
||||
* static register(options: typeof OPTIONS_TYPE): DynamicModule {
|
||||
* return super.register(options);
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
OPTIONS_TYPE: ModuleOptions & Partial<ExtraModuleDefinitionOptions>;
|
||||
}
|
||||
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
3
node_modules/@nestjs/common/module-utils/interfaces/index.d.ts
generated
vendored
Normal file
3
node_modules/@nestjs/common/module-utils/interfaces/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './configurable-module-async-options.interface';
|
||||
export * from './configurable-module-cls.interface';
|
||||
export * from './configurable-module-host.interface';
|
||||
6
node_modules/@nestjs/common/module-utils/interfaces/index.js
generated
vendored
Normal file
6
node_modules/@nestjs/common/module-utils/interfaces/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./configurable-module-async-options.interface"), exports);
|
||||
tslib_1.__exportStar(require("./configurable-module-cls.interface"), exports);
|
||||
tslib_1.__exportStar(require("./configurable-module-host.interface"), exports);
|
||||
Reference in New Issue
Block a user