Skip to content

Commit

Permalink
Merge pull request #718 from magieno/support-configuration-files
Browse files Browse the repository at this point in the history
- Changing the typing to support objects as config.
  • Loading branch information
etiennenoel authored Sep 8, 2024
2 parents e1953c4 + d4e63a7 commit 150ae63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export interface DynamicConfigurationResolverInterface<T> {
* The function that needs to be executed to resolve the value for the configuration.
* @param injectedInstance The initialized instance of the service resolved with the injection token.
*/
dynamicResolve: (injectedInstance?: T) => Promise<string | number | boolean>;
dynamicResolve: (injectedInstance?: T) => Promise<string | number | boolean | any>;
}
4 changes: 2 additions & 2 deletions packages/common/src/types/configuration-definition.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type ConfigurationDefinition = {
/**
* Default resolvers that can be provided in the module to prevent having to define a new one everytime.
*/
defaultResolvers?: (string | boolean | number | DynamicConfigurationResolverInterface<any> | Promise<string | boolean | number> | ResolverInterface<string | boolean | number>)[];
defaultResolvers?: (string | boolean | number | DynamicConfigurationResolverInterface<any> | Promise<string | boolean | number> | ResolverInterface<string | boolean | number | any>)[];
} | {
/**
* The name of the configuration parameter.
Expand All @@ -38,5 +38,5 @@ export type ConfigurationDefinition = {
/**
* Default resolvers that can be provided in the module to prevent having to define a new one everytime.
*/
defaultResolvers?: (string | boolean | number | DynamicConfigurationResolverInterface<any> | Promise<string | boolean | number> | ResolverInterface<string | boolean | number>)[];
defaultResolvers?: (string | boolean | number | DynamicConfigurationResolverInterface<any> | Promise<string | boolean | number> | ResolverInterface<string | boolean | number | any>)[];
}

0 comments on commit 150ae63

Please sign in to comment.