Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Oct 21, 2024
1 parent 0391b3c commit f711c28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/wiring.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ export function CreateLibrary<S extends ServiceMap, C extends OptionalModuleConf
services,
depends,
optionalDepends,
...extra
}: LibraryConfigurationOptions<S, C>): LibraryDefinition<S, C> {
validateLibrary(libraryName, services);

Expand All @@ -609,6 +610,8 @@ export function CreateLibrary<S extends ServiceMap, C extends OptionalModuleConf
}

const library = {
// * Merge in stuff which may only exist via declaration merging
...extra,
[WIRE_PROJECT]: async (
internal: InternalDefinition,
WireService: (
Expand Down
3 changes: 3 additions & 0 deletions src/services/wiring.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export function CreateApplication<S extends ServiceMap, C extends OptionalModule
libraries = [],
configuration = {} as C,
priorityInit = [],
...extra
}: ApplicationConfigurationOptions<S, C>) {
let internal: InternalDefinition;

Expand All @@ -234,6 +235,8 @@ export function CreateApplication<S extends ServiceMap, C extends OptionalModule

const serviceApis = {} as GetApisResult<ServiceMap>;
const application = {
// * Merge in stuff which may only exist via declaration merging
...extra,
[WIRE_PROJECT]: async (internal: InternalDefinition) => {
BOILERPLATE(internal)?.configuration?.[LOAD_PROJECT](
name as keyof LoadedModules,
Expand Down

0 comments on commit f711c28

Please sign in to comment.