@equinor/fusion-framework
Advanced tools
Comparing version 4.3.8 to 4.4.0
@@ -6,2 +6,8 @@ # Change Log | ||
## 4.4.0 (2022-11-17) | ||
### Features | ||
- update typing of useModule hook ([958dd04](https://github.com/equinor/fusion-framework/commit/958dd0401667e9ebb1a51bced128ae43369cd6c4)) | ||
## [4.3.8](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework@4.3.7...@equinor/fusion-framework@4.3.8) (2022-11-16) | ||
@@ -8,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { ModulesInstance } from '@equinor/fusion-framework-module'; | ||
import type { CombinedModules, ModulesInstance } from '@equinor/fusion-framework-module'; | ||
import type { AnyModule } from '@equinor/fusion-framework-module'; | ||
@@ -10,4 +10,3 @@ import { AppModule } from '@equinor/fusion-framework-module-app'; | ||
import { ServicesModule } from '@equinor/fusion-framework-module-services'; | ||
export declare type FusionModules<TModules extends Array<AnyModule> = []> = [ | ||
...TModules, | ||
export declare type FusionModules<TModules extends Array<AnyModule> | unknown = unknown> = CombinedModules<TModules, [ | ||
AppModule, | ||
@@ -20,7 +19,7 @@ ContextModule, | ||
ServiceDiscoveryModule | ||
]; | ||
export declare type FusionModulesInstance<TModules extends Array<AnyModule> = []> = ModulesInstance<FusionModules<TModules>>; | ||
export interface Fusion<TModules extends Array<AnyModule> = []> { | ||
]>; | ||
export declare type FusionModulesInstance<TModules extends Array<AnyModule> | unknown = unknown> = ModulesInstance<FusionModules<TModules>>; | ||
export interface Fusion<TModules extends Array<AnyModule> | unknown = unknown> { | ||
modules: FusionModulesInstance<TModules>; | ||
} | ||
export { AppManifest, AppConfig } from '@equinor/fusion-framework-module-app'; |
{ | ||
"name": "@equinor/fusion-framework", | ||
"version": "4.3.8", | ||
"version": "4.4.0", | ||
"description": "", | ||
@@ -39,3 +39,3 @@ "main": "dist/esm/index.js", | ||
}, | ||
"gitHead": "9721ee0033c59a26292b63f19fc6ed23a6a6136b" | ||
"gitHead": "fbf6373d2bccafd7a1d048aedef186fe6f542018" | ||
} |
@@ -14,3 +14,3 @@ import type { AnyModule } from '@equinor/fusion-framework-module'; | ||
}; | ||
window.Fusion = fusion; | ||
window.Fusion = fusion as unknown as Fusion; | ||
modules.event.dispatchEvent('onFrameworkLoaded', { detail: fusion }); | ||
@@ -17,0 +17,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { ModulesInstance } from '@equinor/fusion-framework-module'; | ||
import type { CombinedModules, ModulesInstance } from '@equinor/fusion-framework-module'; | ||
import type { AnyModule } from '@equinor/fusion-framework-module'; | ||
@@ -12,18 +12,19 @@ | ||
export type FusionModules<TModules extends Array<AnyModule> = []> = [ | ||
...TModules, | ||
AppModule, | ||
ContextModule, | ||
EventModule, | ||
HttpModule, | ||
MsalModule, | ||
ServicesModule, | ||
ServiceDiscoveryModule | ||
]; | ||
export type FusionModulesInstance<TModules extends Array<AnyModule> = []> = ModulesInstance< | ||
FusionModules<TModules> | ||
export type FusionModules<TModules extends Array<AnyModule> | unknown = unknown> = CombinedModules< | ||
TModules, | ||
[ | ||
AppModule, | ||
ContextModule, | ||
EventModule, | ||
HttpModule, | ||
MsalModule, | ||
ServicesModule, | ||
ServiceDiscoveryModule | ||
] | ||
>; | ||
export interface Fusion<TModules extends Array<AnyModule> = []> { | ||
export type FusionModulesInstance<TModules extends Array<AnyModule> | unknown = unknown> = | ||
ModulesInstance<FusionModules<TModules>>; | ||
export interface Fusion<TModules extends Array<AnyModule> | unknown = unknown> { | ||
/** | ||
@@ -30,0 +31,0 @@ * Configured services for Fusion |
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
139572