@pisell/pisellos 0.0.325 → 0.0.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ export declare class BaseModule {
|
|
|
14
14
|
store: any;
|
|
15
15
|
cacheKey: string[];
|
|
16
16
|
}): void;
|
|
17
|
-
effectsOn(eventType: string, callback: (payload: any) => void): void;
|
|
17
|
+
effectsOn(eventType: string, callback: (payload: any) => void): () => void;
|
|
18
18
|
effectsOff(eventType: string, callback: (payload: any) => void): void;
|
|
19
|
-
effectsOnce(eventType: string, callback: (payload: any) => void): void;
|
|
19
|
+
effectsOnce(eventType: string, callback: (payload: any) => void): () => void;
|
|
20
20
|
}
|
|
@@ -69,17 +69,17 @@ export var BaseModule = /*#__PURE__*/function () {
|
|
|
69
69
|
}, {
|
|
70
70
|
key: "effectsOn",
|
|
71
71
|
value: function effectsOn(eventType, callback) {
|
|
72
|
-
this.core.effects.on("".concat(this.name, ":").concat(eventType), callback);
|
|
72
|
+
return this.core.effects.on("".concat(this.name, ":").concat(eventType), callback);
|
|
73
73
|
}
|
|
74
74
|
}, {
|
|
75
75
|
key: "effectsOff",
|
|
76
76
|
value: function effectsOff(eventType, callback) {
|
|
77
|
-
this.core.effects.off("".concat(this.name, ":").concat(eventType), callback);
|
|
77
|
+
return this.core.effects.off("".concat(this.name, ":").concat(eventType), callback);
|
|
78
78
|
}
|
|
79
79
|
}, {
|
|
80
80
|
key: "effectsOnce",
|
|
81
81
|
value: function effectsOnce(eventType, callback) {
|
|
82
|
-
this.core.effects.once("".concat(this.name, ":").concat(eventType), callback);
|
|
82
|
+
return this.core.effects.once("".concat(this.name, ":").concat(eventType), callback);
|
|
83
83
|
}
|
|
84
84
|
}]);
|
|
85
85
|
return BaseModule;
|
|
@@ -14,7 +14,7 @@ export declare class BaseModule {
|
|
|
14
14
|
store: any;
|
|
15
15
|
cacheKey: string[];
|
|
16
16
|
}): void;
|
|
17
|
-
effectsOn(eventType: string, callback: (payload: any) => void): void;
|
|
17
|
+
effectsOn(eventType: string, callback: (payload: any) => void): () => void;
|
|
18
18
|
effectsOff(eventType: string, callback: (payload: any) => void): void;
|
|
19
|
-
effectsOnce(eventType: string, callback: (payload: any) => void): void;
|
|
19
|
+
effectsOnce(eventType: string, callback: (payload: any) => void): () => void;
|
|
20
20
|
}
|
|
@@ -85,13 +85,13 @@ var BaseModule = class {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
effectsOn(eventType, callback) {
|
|
88
|
-
this.core.effects.on(`${this.name}:${eventType}`, callback);
|
|
88
|
+
return this.core.effects.on(`${this.name}:${eventType}`, callback);
|
|
89
89
|
}
|
|
90
90
|
effectsOff(eventType, callback) {
|
|
91
|
-
this.core.effects.off(`${this.name}:${eventType}`, callback);
|
|
91
|
+
return this.core.effects.off(`${this.name}:${eventType}`, callback);
|
|
92
92
|
}
|
|
93
93
|
effectsOnce(eventType, callback) {
|
|
94
|
-
this.core.effects.once(`${this.name}:${eventType}`, callback);
|
|
94
|
+
return this.core.effects.once(`${this.name}:${eventType}`, callback);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
// Annotate the CommonJS export names for ESM import in node:
|