Skip to content

Commit

Permalink
Interface updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Oct 21, 2024
1 parent ad9e9a8 commit 0391b3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions src/helpers/wiring.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export type TModuleMappings = Record<string, ServiceFunction>;
export type TResolvedModuleMappings = Record<string, TServiceReturn>;

// #MARK: ApplicationConfigurationOptions
export type ApplicationConfigurationOptions<
export interface ApplicationConfigurationOptions<
S extends ServiceMap,
C extends OptionalModuleConfiguration,
> = {
> {
name: keyof LoadedModules;
services: S;
libraries?: LibraryDefinition<ServiceMap, OptionalModuleConfiguration>[];
Expand All @@ -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<keyof S, string>[];
};
}

export type TConfigurable<
S extends ServiceMap = ServiceMap,
Expand Down Expand Up @@ -269,10 +269,10 @@ export type ServiceFunction<R = unknown> = (params: TServiceParams) => R | Promi
export type ServiceMap = Record<string, ServiceFunction>;

// #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;
Expand All @@ -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<keyof S, string>[];
};
}

// #MARK: PartialConfiguration
export type PartialConfiguration = Partial<{
Expand Down

0 comments on commit 0391b3c

Please sign in to comment.