@@ -1,6 +1,6 @@
{
"name": "ncore-context",
- "version": "1.0.4",
+ "version": "1.0.5",
"description": "NİBGAT® | NCore - Context",
"main": "lib/index.js",
"module": "lib/index.js",
@@ -59,7 +59,7 @@ class NCoreContext<T extends {} | undefined, K extends ConfigType<T>> {
};
// event listeners:
- addEventListener = (key: string, func: (state: T) => void) => {
+ addEventListener = (key: string, func: (payload: any, state: T) => void) => {
this.subscribers.push({
func,
key