@equinor/fusion-framework-module
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
## 0.1.1 (2022-02-09) | ||
**Note:** Version bump only for package @equinor/fusion-framework-module | ||
# 0.1.0 (2022-02-07) | ||
@@ -8,0 +16,0 @@ |
import type { AnyModule, ModulesConfigurator, ModulesInstanceType } from './types'; | ||
export declare const initializeModules: <TModules extends AnyModule[], TInstance extends unknown = any>(configure: ModulesConfigurator<TModules, TInstance>, modules: TModules, ref?: TInstance | undefined) => Promise<ModulesInstanceType<TModules>>; | ||
export declare const initializeModules: <TModules extends AnyModule[], TInstance = any>(configure: ModulesConfigurator<TModules, TInstance>, modules: TModules, ref?: TInstance | undefined) => Promise<ModulesInstanceType<TModules>>; | ||
export default initializeModules; |
@@ -18,3 +18,3 @@ export interface Module<TKey extends string, TType, TConfig, TDeps extends Array<AnyModule> = []> { | ||
} : never; | ||
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef extends any = ModuleInstance> { | ||
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef = ModuleInstance> { | ||
(config: ModulesConfig<ModulesType<TModules>>, ref?: TRef): void | Promise<void>; | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@equinor/fusion-framework-module", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -31,3 +31,3 @@ "main": "./dist/esm/index.js", | ||
}, | ||
"gitHead": "bbd0502b7d5277534489dab284c3586c67b746a2" | ||
"gitHead": "ca79b01fcc32c2c4e4aeea2f7c251fe9d91a2d04" | ||
} |
@@ -17,6 +17,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
*/ | ||
export const initializeModules = async < | ||
TModules extends Array<AnyModule>, | ||
TInstance extends any = any | ||
>( | ||
export const initializeModules = async <TModules extends Array<AnyModule>, TInstance = any>( | ||
configure: ModulesConfigurator<TModules, TInstance>, | ||
@@ -23,0 +20,0 @@ modules: TModules, |
@@ -36,6 +36,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export interface ModulesConfigurator< | ||
TModules extends Array<AnyModule>, | ||
TRef extends any = ModuleInstance | ||
> { | ||
export interface ModulesConfigurator<TModules extends Array<AnyModule>, TRef = ModuleInstance> { | ||
(config: ModulesConfig<ModulesType<TModules>>, ref?: TRef): void | Promise<void>; | ||
@@ -42,0 +39,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39141
217