@equinor/fusion-framework-module-event
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -6,2 +6,13 @@ # Change Log | ||
## 0.1.2 (2022-08-23) | ||
### Bug Fixes | ||
* **module-event:** expose event handler interface ([0b5bb32](https://github.com/equinor/fusion-framework/commit/0b5bb32c5d8eb445149da5d1e6012d90f1ccbc30)) | ||
## [0.1.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-event@0.1.0...@equinor/fusion-framework-module-event@0.1.1) (2022-08-19) | ||
@@ -8,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
export { FrameworkEvent, } from './event'; | ||
export { FrameworkEvent } from './event'; | ||
export { EventModuleProvider } from './provider'; | ||
@@ -3,0 +3,0 @@ export { moduleKey as eventModuleKey } from './module'; |
@@ -6,2 +6,3 @@ import type { ModuleInstance } from '@equinor/fusion-framework-module'; | ||
} | ||
export declare type FrameworkEventHandler<TType extends IFrameworkEvent = IFrameworkEvent> = (event: TType) => Promise<void> | void; | ||
export interface IFrameworkEvent<TInit extends FrameworkEventInit = FrameworkEventInit, TType extends string = string> { | ||
@@ -8,0 +9,0 @@ readonly type: TType; |
@@ -1,2 +0,3 @@ | ||
export { IFrameworkEvent, FrameworkEvent, FrameworkEventDetail, FrameworkEventInit, FrameworkEventSource, FrameworkEventMap, } from './event'; | ||
export { FrameworkEvent } from './event'; | ||
export type { IFrameworkEvent, FrameworkEventDetail, FrameworkEventInit, FrameworkEventSource, FrameworkEventMap, FrameworkEventHandler, } from './event'; | ||
export { IEventModuleConfigurator } from './configurator'; | ||
@@ -3,0 +4,0 @@ export { IEventModuleProvider, EventModuleProvider } from './provider'; |
{ | ||
"name": "@equinor/fusion-framework-module-event", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Fusion module for events", | ||
@@ -39,3 +39,3 @@ "main": "./dist/esm/index.js", | ||
}, | ||
"gitHead": "ac0ad3f30905bed1e292c609684db498de0d2435" | ||
"gitHead": "1e274dbb0ec2dd181cbb069b1f5bcc9afd9a4e9f" | ||
} |
@@ -8,2 +8,6 @@ import type { ModuleInstance } from '@equinor/fusion-framework-module'; | ||
export type FrameworkEventHandler<TType extends IFrameworkEvent = IFrameworkEvent> = ( | ||
event: TType | ||
) => Promise<void> | void; | ||
export interface IFrameworkEvent< | ||
@@ -10,0 +14,0 @@ TInit extends FrameworkEventInit = FrameworkEventInit, |
@@ -1,4 +0,4 @@ | ||
export { | ||
export { FrameworkEvent } from './event'; | ||
export type { | ||
IFrameworkEvent, | ||
FrameworkEvent, | ||
FrameworkEventDetail, | ||
@@ -8,2 +8,3 @@ FrameworkEventInit, | ||
FrameworkEventMap, | ||
FrameworkEventHandler, | ||
} from './event'; | ||
@@ -10,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
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
96563
648