@aponiajs/common 0.3.18 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +9 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -73,6 +73,7 @@ declare function provideAlias<T>(provide: Token<T>, useExisting: Token<T>): Alia
|
|
|
73
73
|
//#region src/module.d.ts
|
|
74
74
|
interface ModuleDefinition {
|
|
75
75
|
readonly id: string;
|
|
76
|
+
readonly instanceId?: symbol;
|
|
76
77
|
readonly imports: readonly ModuleDefinition[];
|
|
77
78
|
readonly controllers: readonly ControllerDefinition[];
|
|
78
79
|
readonly providers: readonly Provider[];
|
|
@@ -80,6 +81,7 @@ interface ModuleDefinition {
|
|
|
80
81
|
}
|
|
81
82
|
interface ModuleOptions {
|
|
82
83
|
readonly id: string;
|
|
84
|
+
readonly instanceId?: symbol;
|
|
83
85
|
readonly imports?: readonly ModuleDefinition[];
|
|
84
86
|
readonly controllers?: readonly ControllerDefinition[];
|
|
85
87
|
readonly providers?: readonly Provider[];
|
|
@@ -89,7 +91,7 @@ declare function defineModule<const TOptions extends ModuleOptions>(options: TOp
|
|
|
89
91
|
//#endregion
|
|
90
92
|
//#region src/decorators.d.ts
|
|
91
93
|
type ModuleClass = ClassToken<unknown>;
|
|
92
|
-
type ModuleImport = ModuleClass | ModuleDefinition;
|
|
94
|
+
type ModuleImport = ModuleClass | ModuleDefinition | DynamicModule;
|
|
93
95
|
type ModuleProvider = ClassToken<unknown> | Provider;
|
|
94
96
|
interface ModuleMetadata {
|
|
95
97
|
readonly imports?: readonly ModuleImport[];
|
|
@@ -97,6 +99,11 @@ interface ModuleMetadata {
|
|
|
97
99
|
readonly providers?: readonly ModuleProvider[];
|
|
98
100
|
readonly exports?: readonly Token<unknown>[];
|
|
99
101
|
}
|
|
102
|
+
interface DynamicModule extends ModuleMetadata {
|
|
103
|
+
readonly module: ModuleClass;
|
|
104
|
+
readonly id: string;
|
|
105
|
+
readonly instanceId: symbol;
|
|
106
|
+
}
|
|
100
107
|
interface ControllerMetadata {
|
|
101
108
|
readonly path: string;
|
|
102
109
|
}
|
|
@@ -166,4 +173,4 @@ declare class ConsoleLogger implements LoggerService {
|
|
|
166
173
|
}
|
|
167
174
|
declare class Logger extends ConsoleLogger {}
|
|
168
175
|
//#endregion
|
|
169
|
-
export { type AliasProvider, AponiaError, type AponiaErrorCode, type ClassProvider, type ClassToken, ConsoleLogger, type ConsoleLoggerOptions, type Constructor, Controller, type ControllerDefinition, type ControllerMetadata, Delete, type FactoryProvider, Get, Inject, Injectable, type InjectionToken, type LogLevel, Logger, type LoggerService, Module, type ModuleClass, type ModuleDefinition, type ModuleImport, type ModuleMetadata, type ModuleOptions, type ModuleProvider, Patch, Post, type Provider, type ProviderScope, Put, type RequestMethod, type RouteMetadata, type Token, type TokenValue, type TokenValues, type ValueProvider, createToken, defineModule, getConstructorDependencies, getControllerMetadata, getModuleMetadata, getRouteMetadata, provideAlias, provideClass, provideFactory, provideValue, tokenName };
|
|
176
|
+
export { type AliasProvider, AponiaError, type AponiaErrorCode, type ClassProvider, type ClassToken, ConsoleLogger, type ConsoleLoggerOptions, type Constructor, Controller, type ControllerDefinition, type ControllerMetadata, Delete, type DynamicModule, type FactoryProvider, Get, Inject, Injectable, type InjectionToken, type LogLevel, Logger, type LoggerService, Module, type ModuleClass, type ModuleDefinition, type ModuleImport, type ModuleMetadata, type ModuleOptions, type ModuleProvider, Patch, Post, type Provider, type ProviderScope, Put, type RequestMethod, type RouteMetadata, type Token, type TokenValue, type TokenValues, type ValueProvider, createToken, defineModule, getConstructorDependencies, getControllerMetadata, getModuleMetadata, getRouteMetadata, provideAlias, provideClass, provideFactory, provideValue, tokenName };
|
package/package.json
CHANGED