We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc7d93 commit 91f88b6Copy full SHA for 91f88b6
src/index.js
@@ -50,12 +50,13 @@
50
};
51
52
/**
53
- * @this {Energy|Object|Function} source emitter
54
- * @param {Object|Function} target to convert into emitter
55
- * @return {Object|Function} target converted into emitter
+ * @this {Object|Energy|Function} source emitter or emitter-like
+ * @param {Object|Energy|Function} target to convert into emitter
+ * @return {Object|Energy|Function} source for chaining
56
*/
57
emitter['into'] = function(target) {
58
- return defaults(target, this);
+ defaults(target, this);
59
+ return this;
60
61
62
0 commit comments