diff --git a/package.json b/package.json index 9427a70..23fb50b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": { "url": "git+https://github.com/Digital-Alchemy-TS/core" }, - "version": "24.10.5", + "version": "24.10.6", "author": { "url": "https://github.com/zoe-codez", "name": "Zoe Codez" diff --git a/src/helpers/wiring.helper.ts b/src/helpers/wiring.helper.ts index 866d795..a301da0 100644 --- a/src/helpers/wiring.helper.ts +++ b/src/helpers/wiring.helper.ts @@ -35,10 +35,10 @@ export type TModuleMappings = Record; export type TResolvedModuleMappings = Record; // #MARK: ApplicationConfigurationOptions -export type ApplicationConfigurationOptions< +export interface ApplicationConfigurationOptions< S extends ServiceMap, C extends OptionalModuleConfiguration, -> = { +> { name: keyof LoadedModules; services: S; libraries?: LibraryDefinition[]; @@ -47,7 +47,7 @@ export type ApplicationConfigurationOptions< * Define which services should be initialized first. Any remaining services are done at the end in no set order */ priorityInit?: Extract[]; -}; +} export type TConfigurable< S extends ServiceMap = ServiceMap, @@ -269,10 +269,10 @@ export type ServiceFunction = (params: TServiceParams) => R | Promi export type ServiceMap = Record; // #MARK: LibraryConfigurationOptions -export type LibraryConfigurationOptions< +export interface LibraryConfigurationOptions< S extends ServiceMap, C extends OptionalModuleConfiguration, -> = { +> { // neat trick, enforcing that they are named the same as they are loaded name: keyof LoadedModules; services: S; @@ -296,7 +296,7 @@ export type LibraryConfigurationOptions< * Define which services should be initialized first. Any remaining services are done at the end in no set order */ priorityInit?: Extract[]; -}; +} // #MARK: PartialConfiguration export type PartialConfiguration = Partial<{